JElster
asked on
Get checkbox value
How can I return the checkbox value when the checkbox is clicked.
What is wrong with this
<script type="text/javascript">
function OptionsSelected(e) {
alert((e.target || e.srcElement).value);
}
</script>
<body>
<input type="checkbox" name="checkgrp" onclick="return OptionsSelected(e)" value="Test_Value" id="Test">Test
</body>
What is wrong with this
<script type="text/javascript">
function OptionsSelected(e) {
alert((e.target || e.srcElement).value);
}
</script>
<body>
<input type="checkbox" name="checkgrp" onclick="return OptionsSelected(e)" value="Test_Value" id="Test">Test
</body>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.