I'm using Jquery to pass POST data to PHP scripts, however the function only seems to work on Firefox and not function on chrome. Here is an example Jquery post for logging in that fails:
$(document).ready(function() { $("#loginform").submit(function() { var username = $("#username").val(); var password = $("#password").val(); $.post("ex.php", { username: username, password: password }, function(data) { $("#response").hide().html(data).show('fade','fast' ); }); return false; }); });
Instead of functioning like a proper AJAX request as it does in Firefox, it simply refreshes the page in Chrome.
Any ideas?
Thanks.