<html>
<body>
<input type="radio" name="abc" value="1">A
<input type="radio" name="abc" value="2">B
<input type="radio" name="abc" value="3">C
<input type="radio" name="abc" value="4">D
<input type="radio" name="abc" value="5">E
<button id="submit">submit</button>
<script>
$(function(){
$("#submit").click(function(){
alert($('input[name=q12_3]:checked').val());
});
});
</script>
</body>
</html>
<body>
<input type="radio" name="abc" value="1">A
<input type="radio" name="abc" value="2">B
<input type="radio" name="abc" value="3">C
<input type="radio" name="abc" value="4">D
<input type="radio" name="abc" value="5">E
<button id="submit">submit</button>
<script>
$(function(){
$("#submit").click(function(){
alert($('input[name=q12_3]:checked').val());
});
});
</script>
</body>
</html>
No comments:
Post a Comment