Skip to content

Instantly share code, notes, and snippets.

@praveenpuglia
Created March 19, 2013 17:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save praveenpuglia/5198212 to your computer and use it in GitHub Desktop.
Save praveenpuglia/5198212 to your computer and use it in GitHub Desktop.
just the javascript needed to do an ajax request using jquery.
$(document).ready(function() {
$("#loadAjax").on("click",function(){
$(".ajax-content").html("Loading...");
$.post("ajaxCustomerIdName.jsp", {
url : "Something"
}, function(data) {
console.log(data);
$(".ajax-content").html(data);
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment