jquery取当前选中的radio值



jquery取当前选中的radio值

jquery取当前选中的radio值
<script>
function getRadioV(){
alert($(“input[name=test_radio]:radio:checked”).val());
}
</script>
<input type=”radio” name=”test_radio” value=”1″ />test1
<br/>
<input type=”radio” name=”test_radio” value=”2″ />test2
<br/>
<input type=”radio” name=”test_radio” value=”3″ />test3
<br/>

<a href=”javascript:getRadioV()” >getradioval</a>