点击单选按钮js获取出值

yedabingok 32 0 HTML 2019-01-09 09:01:57

$(function(){ $("input:radio").click(function () { //获取选中的radio的值 if($(this).attr("checked")){ var contactUserId = $(this).val(); alert(contactUserId ); } }); });

用户评论
请输入评论内容
评分:
暂无评论