If you are using a javascript library like jQuery, it's very easy:
alert($('input[name=gender]:checked').val());
Read full article from html - Checking Value of Radio Button Group via JavaScript? - Stack Overflow
If you are using a javascript library like jQuery, it's very easy:
alert($('input[name=gender]:checked').val());
Read full article from html - Checking Value of Radio Button Group via JavaScript? - Stack Overflow
No comments:
Post a Comment