By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,818 Members | 2,121 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,818 IT Pros & Developers. It's quick & easy.

Add form controls on the fly?

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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.