I have this piece of code here
<script> function req() { $("div.formbut").hide("slow"); $("div.inqform").show("slow"); var targetOffset = $(\'div.inqform\').offset().top; $(\'html,body\').animate({scrollTop: targetOffset}, 1000); } $("submit2").click(req); $("form").submit(function () { if ($("input").val() == "yes") { $("p").show(4000, function () { $(this).text("Ok, loaded! (now showing)"); }); } $("div.rates").hide("slow"); $("div.ratesbut").hide("slow"); $("div.inqform").hide("slow"); $("div.done").show("slow"); var targetOffset = $(\'div.done\').offset().top; $(\'html,body\').animate({scrollTop: targetOffset}, 1000); return false; }); </script> the "div.inqform" has a small form in it. I noticed that it does not get posted. How can I get the form submitted without ruining what I have already ?
Thanks in advance.
\'in your code? That is invalid JS.