for (i = 0; i < document.checks.user.length; i++) //for all check boxes
if (document.checks.user[i].checked == true )
<form action= method=POST name=checks ID=Form2>
I have a bike:
<input type=checkbox name=user value=Bike ID=Checkbox1>
<input type=button value=Delete
onmouseover=hov(this, 'btn btnhov') onmouseout=hov(this, 'btn')
as you probably already know when there is only one check box left document.checks.user.length = undefined. Whats the most efficient way to make sure that when there is only one check box, it will be deleted. I was thinking just thinking to add it as a seperate if statement before the if statement here.....any suggesstions.