[jQuery] cant append() form objects

[jQuery] cant append() form objects

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=350161922-24012007>After upgrading from 1.0.4 to 1.1.1 the
following code no longer works.  Please tell me if there is a solution to
this issue.</SPAN></DIV>
<DIV><SPAN class=350161922-24012007></SPAN><SPAN
class=350161922-24012007></SPAN> </DIV>
<DIV><SPAN class=350161922-24012007>-------------------------------WORKING HTML
TEST PAGE------------</SPAN></DIV>
<DIV><SPAN class=350161922-24012007><html xmlns="<A
href='http://www.w3.org/1999/xhtml">'>http://www.w3.org/1999/xhtml"></A></SPAN></DIV>
<DIV><SPAN class=350161922-24012007><head><BR><meta
http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
/><BR><title>test</title><BR><style><BR>.layerbox{font-size:8pt;text-align:left;padding:10px;margin:20px;border:1px
solid #B2C5EC; background-color:#FCFCFC;float:left;
clear:left;height:200px;width:200px}<BR></style><BR><script
type='text/javascript'
src='/js/jquery111.js'></script><BR></head></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=350161922-24012007><body><BR><div
id='content'></div><BR><script language="JavaScript"><BR>function
appLayer(id){<BR> //create layerbox<BR>  var
layerbox=document.createElement('div');<BR> 
layerbox.id=id+"_layer";<BR>  layerbox.className="layerbox";<BR> 
$("#content").prepend(layerbox);<BR>  this.divName=layerbox.id;<BR> 
this.layerobj=layerbox;<BR> //create form<BR>  var
frm=document.createElement('form');<BR>  frm.id=id+"_form";<BR> 
frm.name=id+"_form";<BR>  frm.action = "index.php";<BR>  frm.method =
"post";<BR>   this.frm=frm.id;<BR>//-------HERE IS THE
PROBLEM-----///<BR>  $("#"+this.divName).append(frm);<BR>//-------APPEND
DOESNT WORK FOR FORM OBJECT------///<BR>  //create main div<BR> var
main=document.createElement('div');<BR> main.id=id+"_main";<BR> main.className="morebox";<BR> main.innerHTML="This
box should get created, but it doesnt because form didnt get
created";<BR> $("#"+this.frm).prepend(main);<BR>}<BR>tst=new
appLayer('Test');<BR></script><BR></body><BR></html><BR>----------------------------END
PAGE-----------------</SPAN></DIV>
<DIV><SPAN class=350161922-24012007></SPAN> </DIV>
<DIV><SPAN class=350161922-24012007>The form object does not get created. 
</SPAN><SPAN class=350161922-24012007>I don't have any problems appending other
objects such as divs, but the form object won't work anymore.</SPAN></DIV>
<DIV><SPAN class=350161922-24012007><SPAN
class=350161922-24012007></SPAN></SPAN> </DIV>
<DIV><SPAN class=350161922-24012007><SPAN class=350161922-24012007>It works fine
in 1.0.4.  Try it out.</SPAN></SPAN></DIV>
<DIV><SPAN class=350161922-24012007><SPAN
class=350161922-24012007></SPAN></SPAN> </DIV>
<DIV><SPAN class=350161922-24012007><SPAN class=350161922-24012007>Thanks in
advance.</SPAN></SPAN></DIV>
<DIV><SPAN class=350161922-24012007><SPAN
class=350161922-24012007></SPAN></SPAN> </DIV>
<DIV><SPAN class=350161922-24012007><SPAN
class=350161922-24012007>Jeremy</SPAN></DIV></SPAN></BODY></HTML>
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/