Hi Guys!
I'm trying to get jQuery to send values to a PHP script using Ajax. Here's the code I have so far, but it doesn't seem to alert me with any data. I know the PHP scripts works, so just need to get this part working. Any ideas?
Code JavaScript:<script> $(document).ready(function() { $("#location_ajax").keydown(function(event){ $.get("ajax/locations.php", { input: "chigwell" },function(data){ alert("Data Loaded: " + data); }); }); }); </script>



Reply With Quote




Bookmarks