Is it possible to get the value of a selected radio button using its name in jQuery?

I need to know whether it is possible to get the value of a selected radio button using its name in jQuery. If possible, please let me know how to do it.

Comments

  • $("input:radio[name=YourName]").click(function() {
        var SelectedRadioValue = $(this).val();
    });
    
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion