Autor | Zpráva | ||
---|---|---|---|
reSSet Profil |
#1 · Zasláno: 25. 4. 2009, 20:42:07
dobrý deň
potreboval by som pomôcť s registráciami chcem spraviť, že ak bude čo i len jedna vec v inputoch vo forme prázdna, teda nevyplnená, SUBMIT button by bol disabled a ak by boli všetky vyplnené tak by to šlo kliknúť.. ďakujem za pomoc |
||
LuBoss Profil * |
#2 · Zasláno: 26. 4. 2009, 00:07:26
dobry den
skus toto: <html> <head> <script> function undis() { var t = true; for(var i = 0; i < 4; i++) if(document.getElementById("t" + i).value == "") t = false; if(t) document.getElementById("s").disabled=false; else document.getElementById("s").disabled=true; } </script> </head> <body> <form> <input id="t0" type="text" onKeyUp="undis()"> <input id="t1" type="text" onKeyUp="undis()"> <input id="t2" type="text" onKeyUp="undis()"> <input id="t3" type="text" onKeyUp="undis()"> <input id="s" disabled="true" type="submit"> </form> </body> </html> |
||
reSSet Profil |
#3 · Zasláno: 26. 4. 2009, 16:26:07
thx už som to urobil ale aj tak ďakujem za ochotu ;);)
|
||
Časová prodleva: 15 let
|
0