tibberous Posted January 16, 2011 Share Posted January 16, 2011 function onButton(){ alert('here'); $.get('index.php', {}, function(j){ alert('j'); }); } Shouldn't this load index.php, pass no variables, and print the letter j once it succeeds? It is printing 'here', but the callback is never getting called. Link to comment https://forums.phpfreaks.com/topic/224651-super-basic-jquery-not-working/ Share on other sites More sharing options...
tibberous Posted January 16, 2011 Author Share Posted January 16, 2011 Fixed. The trick is to not include jqeury.js... Link to comment https://forums.phpfreaks.com/topic/224651-super-basic-jquery-not-working/#findComment-1160442 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.