jquery radio button checked event

59

jquery select checked radio button value -

$('input[name="name_of_your_radiobutton"]:checked').val();

radio button onchange jquery -

$('input[type=radio][name=bedStatus]').change(function() {
    if (this.value == 'allot') {
        alert("Allot Thai Gayo Bhai");
    }
    else if (this.value == 'transfer') {
        alert("Transfer Thai Gayo");
    }
});

if radio checked jquery -

$('#element').click(function() {
   if($('#radio_button').is(':checked')) { alert("it's checked"); }
});

Comments

Submit
0 Comments