How can I keep data that a user has entered in my jQuery/Ajax pop-up form?
Posted
by Lucas McCoy
on Stack Overflow
See other posts from Stack Overflow
or by Lucas McCoy
Published on 2010-05-30T16:09:20Z
Indexed on
2010/05/30
16:12 UTC
Read the original article
Hit count: 247
I have a form on a website I'm working (you can see it here) on that allows my users to give feedback. It's an jQuery/Ajax popup form:
$('.contact_us').click(function(){
var boxy_content;
boxy_content += "<div style=\"width:300px; height:300px \"><form id=\"feedbacked\">";
boxy_content += "<p>Subject<br /><input type=\"text\" name=\"subject\" id=\"subject\" size=\"33\" /></p><p>Your E-Mail Address:<br /><input type=\"text\" name=\"your_email\" size=\"33\" /></p><p>Comment:<br /><textarea name=\"comment\" id=\"comment\" cols=\"33\" rows=\"5\"></textarea></p><br /><input type=\"submit\" name=\"submit\" value=\"Send >>\" />";
boxy_content += "</form></div>";
// Other code here...
Is there anyway I can save what the user has entered (in case they see our error message when they try to submit)?
© Stack Overflow or respective owner