This jQuery snippet will invoke the click event for the first radio button named “gender“.
[javascript]
$("input:radio[name=gender]:first").click();
[/javascript]
This jQuery snippet will invoke the click event for the first radio button named “gender“.
[javascript]
$("input:radio[name=gender]:first").click();
[/javascript]
© 2023 Best jQuery.