How to check if a radio button is checked using JQuery

It is easy to check if a radio button is checked using JQuery.

For Example:


In this case you can check the buttons using:

jQuery handles syntax from left to right.

in input[name=gender]:checked

input means input tags.
[name=gender] refers to tags with the name gender within the same group.
:checked refers to checkboxes/radio buttons that are selected within the same group.

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInShare on RedditShare on StumbleUponEmail this to someoneShare on TumblrDigg this

One thought on “How to check if a radio button is checked using JQuery

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">