Here is my code:
Sales Promotion 7条回答 北海茫月 (楼主) 2020-11-28 05:08 There is another way also. Try below code $(document).ready(function(){ $("input[name='gender']").on("click", function() { alert($(this).val()); }); }); 0 讨论(0) 查看其它7个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
There is another way also. Try below code
$(document).ready(function(){ $("input[name='gender']").on("click", function() { alert($(this).val()); }); });