Hello people
i created this code:
<script langauge=javascript>
function baby(a,b)
{
document.p.text=a;
document.p.cat.checked=true;
}
</script>
<form name="p" >
<input type="checkbox" name="cat[10]">
<input type="checkbox" name="cat[11]">
<input type="text" name="text">
</form>
<a href="javascript:baby('Hello',10);">Click Here</a>
when i click on The "Click Here" the textbox show me Hello but the checkbox doesn't work and dosen't get check.
Now How can i do? how can i check of the checkboxes?
Another question:
you assume that i have some checkboxes with the diffrent name such as
<input type="checkbox" name="cat[110]">
<input type="checkbox" name="cat[101]">
<input type="checkbox" name="cat[011]">
.
.
.
now how can i uncheck them at a moment?