bmcua
05-29-2003, 12:59 PM
I'm a newbie when it comes to javascript.
I need to invert all the checkbox when the user submit the form.
so far i got this
<script language="JavaScript" type="text/JavaScript">
<!--
function invert() {
in here......i am not sure how to invert
}
//-->
</script>
<form name="form" method="post" action="search.php">
<input type="checkbox" name="ethnic[]" value="0">
<input type="checkbox" name="ethnic[]" value="1">
<input type="checkbox" name="ethnic[]" value="2">
<input type="checkbox" name="ethnic[]" value="3">
<input type="checkbox" name="ethnic[]" value="4">
<input type="submit" name="Submit" value="Search" onClick="invert()">
</form>
please help me........
thanks
I need to invert all the checkbox when the user submit the form.
so far i got this
<script language="JavaScript" type="text/JavaScript">
<!--
function invert() {
in here......i am not sure how to invert
}
//-->
</script>
<form name="form" method="post" action="search.php">
<input type="checkbox" name="ethnic[]" value="0">
<input type="checkbox" name="ethnic[]" value="1">
<input type="checkbox" name="ethnic[]" value="2">
<input type="checkbox" name="ethnic[]" value="3">
<input type="checkbox" name="ethnic[]" value="4">
<input type="submit" name="Submit" value="Search" onClick="invert()">
</form>
please help me........
thanks