Hello people,
I want that when I mouse over a checkbox, that it is checked.
I have now the following code:
<script language=javascript>
function checkit(myform, name)
{
var xx = document.myform.name;
xx.checked = true;
}
</script>
<form name=myform27>
<input type=checkbox name=mycheck onMouseOver="checkit(myform27,mycheck)" value="1"> Checking
</form>
But this does not work, it says "document.myform is undefined".
How to solve this, and what are i am doing wrong?