html代碼 <asp:LinkButton ID="btRequest" runat="server" OnClick="btRequest_Click">應(yīng)聘</asp:LinkButton> Jquery代碼如下: var lbRequest = "#<=btRequest.ClientID>"; $(lbRequest).bind("click", function() { var userId = "<%=UserId %>"; var postUserId = $(this).attr("jobpostuserId"); if ($.trim(userId) == $.trim(postUserId)) { alert("您不能應(yīng)聘自己發(fā)布的職位!"); return false; } return true; });怎樣執(zhí)行前臺(tái)的click事件
Jquery問(wèn)題
叮當(dāng)貓咪
2018-10-10 05:06:36