Skip to content

Instantly share code, notes, and snippets.

@iamwilhelm
Created September 7, 2009 03:33
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 iamwilhelm/182128 to your computer and use it in GitHub Desktop.
Save iamwilhelm/182128 to your computer and use it in GitHub Desktop.
$(document).ready(function() {
$("a.get").click(
function() {
url = $(this).attr("data-href");
target = $(this).attr("data-target");
$(target).html("Loading...");
$.get(url, function(data) {
$(target).html(data);
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment