javascript:
$("input[name='radiom']").click(function(){
var v = $("input[name='radiom'][@checked]").val();
alert(v);
});
html:
<input name="radiom" type="radio" value="1" checked="checked" />
<input name="radiom" type="radio" value="2" checked="checked" />
<input name="radiom" type="radio" value="3" checked="checked" />
沒有留言:
張貼留言