Freepages-Help-L Archives
Archiver > Freepages-Help > 2009-04 > 1240539809
From: "Barry Carlson" <>
Subject: Re: [FreeHelp] More Mail Merge & Forms Help Needed
Date: Fri, 24 Apr 2009 14:23:29 +1200
References: <c707abae0904221111i7c9ffd69k626dd05de8e73109@mail.gmail.com>
Because of something I did when sending the last message the formatting of
the html had a '<' ahead of each line of code. So here it is again, but
remember to remove the opening and closing <code> tags if you want to try it
out.
Barry
<!--code>
<html>
<head>
<title>Checkboxes</title>
<style type="text/css">
input {margin-left:10px;}
</style>
<script type="text/javascript">
function makeCheck() {
var a = document.ancestors.married.checked;
var b = document.ancestors.unmarried.checked;
var c = document.ancestors.widowed.checked;
var d = document.ancestors.divorced.checked;
if((a + b + c + d) >= 2) {
alert('Only check one box!');
}
}
</script>
</head>
<body>
<form name="ancestors">
<input type="checkbox" name="married" onclick="makeCheck()"> Married
<input type="checkbox" name="unmarried"
onclick="makeCheck()"> Unmarried
<input type="checkbox" name="widowed" onclick="makeCheck()"> Widowed
<input type="checkbox" name="divorced" onclick="makeCheck()"> Divorced
</form>
</body>
</html>
</code --><!-- Remove the code tags to use -->
This thread:
| Re: [FreeHelp] More Mail Merge & Forms Help Needed by "Barry Carlson" <> |