I am developing an asp.net app in which I am using Jquery and I want if Jquery click function calls once then it should not be called again until a page load. The click function code is following
$("#plblAgreeProblem").click(function(){
var str = {
problemID: $("#problemID").val(),
empID : $("#empID").val()
}
$.ajax({
type: "POST",
url: "<%= Url.Action("AgreeProblem", "Discussion") %>",
data: str,
error: function(msg){
alert("error2" + msg);
},
success: function (msg) {
$("#ptxtDisAgreeProblem").empty();
$("#ptxtDisAgreeProblem").text(msg);
}
});
})
Sorry for poor English. Thanks and Regards