Apr 14, 2006 #1 aigarzzz Programmer Joined Apr 5, 2006 Messages 16 Location LV myform=document.createElement("form"); myinput = document.createElement("input"); myinput.setAtribute('type','text'); myinput.setAtribute('name','formName'); myform.appendChild(myinput); i dont understand why it doesn't work..
myform=document.createElement("form"); myinput = document.createElement("input"); myinput.setAtribute('type','text'); myinput.setAtribute('name','formName'); myform.appendChild(myinput); i dont understand why it doesn't work..
Apr 14, 2006 #2 BillyRayPreachersSon Programmer Joined Dec 8, 2003 Messages 17,047 Location GB "setAtribute" is a typo. Attribute has 2 Ts: setAt[!]t[/!]ribute. Hope this helps, Dan [tt]Dan's Page [blue]@[/blue] Code Couch http://www.codecouch.com/dan/[/tt] Upvote 0 Downvote
"setAtribute" is a typo. Attribute has 2 Ts: setAt[!]t[/!]ribute. Hope this helps, Dan [tt]Dan's Page [blue]@[/blue] Code Couch http://www.codecouch.com/dan/[/tt]
Apr 14, 2006 #3 jemminger Programmer Joined Jun 25, 2001 Messages 3,453 Location US and are you appending the form to anything? -jeff http://www.jeffemminger.comlost: one sig, last seen here. Upvote 0 Downvote
and are you appending the form to anything? -jeff http://www.jeffemminger.comlost: one sig, last seen here.