I'm trying to submit some data from form fields without reload the page. I try a bit of codes and it doesn't work.
Take a look what i'm doing and teach me please. <script> $("#button").click(function(){ $.post("http://localhost/Ismart/modules/business/search.php", { name: "Test", city: "test" } ); }, function(ret){ $("#content").html(ret); }); </script> <input type="text" id="name"> <input type="text" id="city"> <input type="submit" id="button"> Ps.: I put fields value fixed as could be seen before (name: "Test", city: "test" ) because i don't know how to solve this too. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/