469,632 Members | 1,732 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

dynamically creating a textfield

How to create a textfiled dynamically when a particular option has been choosen from a Select. I have used a <div id="other"> tag where i want the textfiled to appear by using

Expand|Select|Wrap|Line Numbers
  1. document.getElementById('other').innerHTML=_root.createTextField('hello',20,50,50,200,300);
within <script> </script> tag, However this does not work

Also once this new textfield is created can i read the value entered in this new textfield in a Php file.

Please advice.
Oct 1 '07 #1
1 1194
16,027 Expert Mod 8TB
Please use code tags when posting code:

Javascript code...

Use the select element's onchange to call a function which creates the text field.
Oct 1 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.