...

View Full Version : Checkbox Submit



OpSiS
01-31-2004, 04:37 PM
Hi there!

I'm newbie to javascript and i can't make a script to submit form when you click on a checkbox. Is it possible?

Thanks! :thumbsup:

Antoniohawk
01-31-2004, 06:52 PM
<form name="myForm">
<input type="checkbox" name="car" onClick="document.myForm.submit()">
</form>

OpSiS
02-01-2004, 03:28 PM
And is it possible to check if there are N checkboxes "checked"?

I need to check if there are more than N and warn the user. :(

Willy Duitt
02-01-2004, 04:12 PM
Originally posted by OpSiS
And is it possible to check if there are N checkboxes "checked"?

I need to check if there are more than N and warn the user. :(

Perhaps you should post the codes you are working with so we can see what you are trying to do. And before you move the goal post again, it would be helpful to know how many is n and does n checkboxes need to be checked or just not more than n?

.....Willy



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum