I've got an app where I want the user to be able to add and submit
forms. [ I'm using v 1.1.1 ]
In the case of the following:
$(function(){
var myForm1="<div><form>1<input type=text value=Fred />
</form><div>";
var myForm2= "<form>2<input type=text value=Harry /></form>";
$(myForm1).appendTo("body");
$(myForm2).appendTo("body");
});
The first form, wrapped in a div, works ok. But with the unwrapped form,
only the input field is added to the DOM.
I can insert an unwrapped form by cloning, but that presents other
complications for my app. I don't particularly want to wrap the form in
a div (unless, of course, that's considered good form :-) Am I
overlooking something obvious?
I saw a discussion here last month about problems creating the form
element itself in jquery v 1.1.1
http://www.nabble.com/cant-append%28%29-form-objects-tf3095501.html#a8593734
but I can't see that it was resolved.
Bruce
--
Bruce McKenzie
http://www.2MinuteExplainer.com
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/