reloading page after $.post
hi,
i have a <SELECT> field in an HTML form. instead of a 'submit' button i am trying to have the form submitted whenever a new option is selected.
my jquery code is as follows:
-
$(document).ready(function(){
$('select').change(function(){
$.post("/index.php/colleag/fixtures/", {team : "ARU"});
return false;
});
});
the problem is:
- when 'submit' button is used, the page is redirected to the target URL with appropriate arguments which i get by reading $_POST.
- with the above jQuery submission, data reaches the server, but the page is not redirected.
any help would be much appreciated.
dom