<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript">
function show_alert()
{
if (form1.CheckboxGroup1_0.checked == true)
alert("I am an alert box!")
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Test Page</title>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<p>
<label>
<input type="checkbox" name="CheckboxGroup1" value="blue" id="CheckboxGroup1_0" />
Blue</label>
<br />
<label>
<input type="checkbox" name="CheckboxGroup1" value="yellow" id="CheckboxGroup1_1" />
Yellow</label>
<br />
<label>
<input type="checkbox" name="CheckboxGroup1" value="black" id="CheckboxGroup1_2" />
Black</label>
</p>
<p>
<input type="button" onclick="show_alert()" value="Submit" />
</p>
</form>
</body>
</html>
This post has been edited by jimdandy75: 02 September 2010 - 12:57 PM

New Topic/Question
Reply



MultiQuote




|