<table>
<tr>
<td width="150px">Cash Bank Voucher Type:</td>
<td><input id="All" name="All" onclick="return myFunction2(this)" type="radio" value="-1" checked="checked" />All</td>
<td><input id="Non_Cash_Bank_Voucher" name="Non_Cash_Bank_Voucher" onclick="return myFunction2(this)" type="radio" value="0" />Non Cash Bank Voucher</td>
<td><input id="Cash_Bank_Voucher" name="Cash_Bank_Voucher" onclick="return myFunction2(this)" type="radio" value="1" />Cash Bank Voucher</td>
</tr>
</table>
<scripts>
function myFunction2(CBVTvalue) { $('#All').attr('checked', false); $('#Cash_Bank_Voucher').attr('checked', false); $('#Non_Cash_Bank_Voucher').attr('checked', false); $(CBVTvalue).attr('checked', true); };
</scripts>This code snippet for radio button selecting in JavaScript.