I’m trying to clean up the html code on my site, so I moved the jquery code to an external js file. Almost everything works as before only a .get function stopped working.
$("#sle").live("click", function() {
$.get("index.php", function(data){
alert("Data Loaded: " + data);
});
});
Any ideas?
The page is missing jQuery, or another function named
$is shadowing jQuery.Try replacing replace
$withjQuery:However, if the error you commented on only appears when you try to use
$.get()in the console, then you might be running into this issue in Google Chrome.