I’m using jQuery Form (http://jquery.malsup.com/form/) to get send data to a form – is there a way I can then, without refresh, put the results page that’s generated by the form into a div on the page?
Any advice appreciated!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I would suggest not using that form plugin – it was made back in the days before there was an easy way to serialize form data using jQuery, and serves no real purpose any more. I would suggest something like this:
If you insist on using jQuery Form Plugin – which is NOT recommended -, you can set the
targetoption to a selector of the element(s) you would like to fill up:Take a look at http://jquery.malsup.com/form/#options-object for more info.
To prevent refresh, just make sure the form’s
onsubmitevent returns false: