Friday, May 13, 2011

How to get the checked radio button by jQuery

$(':radio').change(function () {
       $(':radio:checked').each(function () {
            if ($(this).val() == 2) {
                //Do stuff
                return;
            }
        });
    });

No comments:

Post a Comment