|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||||
|
|||||
|
radio button has no properties
im creating a form through php whiche here is the code of it, but when its executed i constantly get a javascript error of
Error: document.form.Delete[i] has no properties php Code:
and i have this javascript code to check if something is empty (dunno if this is correct but im a bit of a noob, so take it easy on me here is the javascript //it checks the form as an array for anything that is empty(tested it and worked with text, tottaly forgot radio buttons at that point o.o ) function checkempty(){ alert("papas"); var flag = 0; pass = ""; for (var i=0; i<document.form.elements.length; i++){ if((document.form.elements[i].value == "")||(document.form.Delete[i].checked)){ alertmsg = alertmsg + ' ' +document.form.elements[i].name+'n'; pass = false; flag = flag + 1; } } if (flag > 0){ alertmsg = 'The following are required:n' + alertmsg; alert (alertmsg); }else checksubmit(); } i hope i was descriptive enough |
|
#2
|
|||
|
|||
|
RE: radio button has no properties
ok fixed
stupid mistake of mine |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > radio button has no properties |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|