469,288 Members | 2,357 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,288 developers. It's quick & easy.

Add form controls on the fly?

Is it possible to add new form controls such as <select> and <input>
controls using JavaScript - all client-side and on-the fly?
Sep 17 '05 #1
3 2946
Davey said the following on 9/17/2005 2:24 PM:
Is it possible to add new form controls such as <select> and <input>
controls using JavaScript - all client-side and on-the fly?


Yes.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Sep 17 '05 #2
Davey wrote:
Is it possible to add new form controls such as <select> and <input>
controls using JavaScript - all client-side and on-the fly?


createElement Method (document) (Internet Explorer)
http://msdn.microsoft.com/workshop/a...ateelement.asp
--
Michael Harris
Microsoft MVP Scripting


Sep 17 '05 #3
Michael Harris (MVP) wrote:
Davey wrote:
Is it possible to add new form controls such as <select> and <input>
controls using JavaScript - all client-side and on-the fly?

createElement Method (document) (Internet Explorer)


The createElement method is part of the W3 standards and is not specific
to IE.
http://msdn.microsoft.com/workshop/a...ateelement.asp


That is a very ordinary reference that suggests using <script> elements
without the require type attribute and eval when it is completely
unnecessary. It also suggests links to other methods that are IE only
and will likely not work on browsers other than IE.

Better to search this newsgroup for examples of 'document.createElement'
- there are over 1,300 of them.

Sort by date and work from there.

<URL:http://groups.google.com/group/comp.lang.javascript/search?hl=en&group=comp.lang.javascript&q=document .createElement+&qt_g=1&searchnow=Search+this+group >
--
Rob
Sep 18 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Richard Cornford | last post: by
11 posts views Thread by Jozef | last post: by
3 posts views Thread by Roger | last post: by
4 posts views Thread by Rod Gill | last post: by
19 posts views Thread by Coward 9 | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.