Before someone has a go at me or marks this down, I have looked all over the internet to find out how to do this (including the same question on stackoverflow). I\'m new, an
the_function() { $.ajax({url:"demo_test.php",success:function(result){ alert(result); // will alert 1 }}); }
// demo_test.php
Notes