Response title
This is preview!
<!DOCTYPE html>
<html>
<head>
<style>
input, label { line-height: 1.5em; }
</style>
<script src="http://code.jquery.com/jquery-latest.js"></script>
</head>
<body>
<form>
<div>
<div>
<input type="radio" name="rb_1" value="high_1" class="hi">
<label for="f11">f11</label>
</div>
<div>
<input type="radio" name="rb_1" value="middle_1" class="mid">
<label for="f12">f12</label>
</div>
<div>
<input type="radio" name="rb_1" value="lower_1" class="lo">
<label for="f13">f13</label>
</div>
</div><div>
<input type="radio" name="rb_2" value="high_2" class="hi">
<label for="f21">f21</label>
</div>
<div>
<input type="radio" name="rb_2" value="middle_2" class="mid">
<label for="f22">f22</label>
</div>
<div>
<input type="radio" name="rb_2" value="lower_2" class="lo">
<label for="f23">f23</label>
</div>
</div>
<div>
<input type="radio" name="rb_x" value="high_x" class="hi">
<label for="fx1">fx1</label>
</div>
<div>
<input type="radio" name="rb_x" value="middle_x" class="mid">
<label for="fx2">fx2</label>
</div>
<div>
<input type="radio" name="rb_x" value="lower_x" class="lo">
<label for="fx3">fx3</label>
</div>
</div><div id="log"></div>
</form>
<script>
$("input").click(function() {
$("#log").html( $(":checked").val() + " is checked!" );
});
</script>
</body>
</html>
© 2010 The jQuery Project
Sponsored by
and others.
