html代码:
<a href="javascript:void(0);" class="Send" onclick="AddRecMassage(this)">发送简历</a> <input class="hid" type="hidden" value="<%#Eval("UserID") %>"/>jq代码:function AddRecMassage(e) { var Rid = $(e).next(".hid").val();//获取值 $.Ajax({ async: false, type: "post", url: "../../Handler/Ajax.ashx", data: { UserID: '<%=useraccount %>', applyid:Rid, methodname: "AddRecMassage" }, success: function (data) { if (data=='1') { alert("投递成功"); } else { alert("请重新登录"); location.href = "/Views/PersonalCenter/Login.aspx"; } }, error: function (xhr, type) { alert('Ajax error!'); } }); }
新闻热点
疑难解答