hi,
here's code for radio buttons i'm doing for checking gender, can anyone tell me how can i do this using checkboxes?
Code:
<html>
<head>
<title>Task</title>
<script>
	function check()
	{
		if(document.task.gender[0].checked || document.task.gender[1].checked)
		{
			alert("ok, checked");
		}
		else if(!document.task.gender[0].checked && !document.task.gender[1].checked)
		{
			alert("u must check one");
		}
	}
</script>
</head>
<form name=task id="task">
<table>
<tr>
	<td><input type='radio' name=gender value='male'></td>
	<td>male</td>
</tr>
<tr>
	<td><input type='radio' name=gender value='female'></td>
	<td>female</td>
</tr>
<tr>	
	<td><input type='button' value='click' onClick="check()"></td>
</tr>
</table>
</form>
</html>
thanks..