110
rated 0 times
[
111]
[
1]
/ answers: 1 / hits: 17464
/ 14 Years ago, thu, august 26, 2010, 12:00:00
I'm working on a website where users can create and save their own HTML forms. Instead of inserting form elements and ids one by one in the database I was thinking to use js (preferably jquery) to just get the form's HTML (in code source format) and insert it in a text row via mysql.
For example I have a form in a div
<div class=new_form>
<form>
Your Name:
<input type=text name=something />
About You:
<textarea name=about_you></textarea>
</form>
</div>
With js is it possible to get the raw HTML within the new_form div?
More From » jquery