Anyone know how we create a ajax link when we click any href
link or input / button, it's work in ajax?
You have to event.preventDefault()
in your event handler to prevent the browser from trying to browse to the link. Other than that it should be business as usual.
$(document).on("click", "a,input,button", function(event){
event.preventDefault();
$.ajax(...);
});