I try to check a radio button with jQuery. Here\'s my code:
Try this
$(document).ready(function(){ $("input[name='type']:radio").change(function(){ if($(this).val() == '1') { // do something } else if($(this).val() == '2') { // do something } else if($(this).val() == '3') { // do something } }); });