Created
August 7, 2015 15:23
-
-
Save user512/7502813d9c20ae645f45 to your computer and use it in GitHub Desktop.
Ajax by Derek
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("a").click(function(e) { | |
e.preventDefault(); // prevent default action | |
$.ajax{ | |
url: $(this).attr("href"), | |
dataType | |
}).done(function(data) { // ajax call | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment