OnChange is not working
I have this problem:
I need to check progamatically a Checkbox named 'comp' only when an input text field named 'cant' receives something.
Here is my code, it is not working at all.
$stream .= "<td><input type='text' name='cant' id='cant' size='5' onChange='document.form1.comp.checked=true' /></td>";
$stream .= "<td><input type='checkbox' name='comp' value=$i /></td>";
this code is within a form named 'form1'
Any help is welcome.
Thanks in advance.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)