Hi.. here I do the functionality for when I selected radio button it’ll show the alert message in this example we see I’m clicking “FEMALE” that will goes to the input name as gender that which it is checked that values is showing in alert … in this example it is “Hello Madam”
$(document).ready(function () {
$('input[name=gender]').click(function () {
alert($('input[name=gender]:checked').val());
});
});Output:

No comments:
Post a Comment