0

Using html5 only, how do you disable a submit button until all fields in a form have been filled?

html5 form. no css, JavaScript or jquery

30th Sep 2018, 11:36 PM
mya
mya - avatar
4 Respuestas
+ 2
You need JavaScript to do that: https://code.sololearn.com/WBj2GwCtWnY2/?ref=app
1st Oct 2018, 12:15 AM
Ulisses Cruz
Ulisses Cruz - avatar
+ 2
There's a disabled attribute (like in Ulisses's code), but it won't do what you're saying you want to do without JavaScript, so use Ulisses's full code. 🙂
1st Oct 2018, 1:48 AM
Janning⭐
Janning⭐ - avatar
+ 1
Ulisses Cruz thank you. haven't reached JavaScript yet so I thought there was a way to do that without it
1st Oct 2018, 12:25 AM
mya
mya - avatar
+ 1
Good thought ODLNT . 👍
1st Oct 2018, 4:49 AM
Janning⭐
Janning⭐ - avatar