Hello Gurus, There are 2 conditions, should be achieved it through javascript. 1)if i dont select any checkboxes from Category then it should prompt a alert message to "select any of the categories from Category fieldset" (above checkboxes). 2)i have a specific condition, if i select any specific checkboxes from Items fieldset, then prompt message need not be displayed.
<html>
<head runat="server">
<title></title>
<script type="text/javascript">
function Validate() {
}
</script>
</head>
<body>
<form id="form1" runat="server">
<fieldset>
<legend>Category
</legend>
<div id="div1">
<input id="chkCate_Item1" type="checkbox" name="chb[]" value="html" />HTML<br />
<input id="chkCate_Item2" type="checkbox" name="chb[]" value="css" />CSS<br />
<input id="chkCate_Item3" type="checkbox" name="chb[]" value="javascript" />JavaScript<br />
<input id="chkCate_Item4" type="checkbox" name="chb[]" value="php" />php<br />
<input id="chkCate_Item5" type="checkbox" name="chb[]" value="python" />Python<br />
<input id="chkCate_Item6" type="checkbox" name="chb[]" value="net" />Net<br />
</div>
</fieldset>
<fieldset>
<legend>Items
</legend>
<div id="div2">
<input id="chkItems_Item1" type="checkbox" name="chb[]" value="Test1" />Item1<br />
<input id="chkItems_Item2" type="checkbox" name="chb[]" value="Test2" />Item2<br />
<input id="chkItems_Item3" type="checkbox" name="chb[]" value="Test3" />Item3<br />
<input id="chkItems_Item4" type="checkbox" name="chb[]" value="Test4" />Item4<br />
<input id="chkCatItems_Item5" type="checkbox" name="chb[]" value="Test5" />Cate Item5<br />
<input id="chkCatItems_Item6" type="checkbox" name="chb[]" value="Test6" />Cate Item6<br />
<input type="button" value="Click" id="Button1" onclick="javascript: Validate();" />
</div>
</fieldset>
</form>
</body>
</html>
Please help me with this, it is very urgent. I am not using CheckBoxList but only html checkboxes.