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. Quote 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... Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.