Click to See Complete Forum and Search --> : document.write issue


xzorDOTnet
07-11-2003, 08:37 PM
I want to make a form where I have a <select> and about 5 options. The options have numeric values and with those I want to add that amount of file type inputs below the <select>. I have tried to do it, but when it document.writes it just writes over everything with the new inputs.

How would I go about adding those inputs after the <select> tag?

micjohnson
07-11-2003, 09:00 PM
this is just an idea I dont really understand what your asking but if you did something like this
<SCRIPT language=JavaScript>
var i=null
function go (){
if (i != null){}
y=i;
document.getElementById('1').innerHTML = ("<input type=text value='+y+'>");
}
</SCRIPT>

then in body you put
<div id=1></div>

for your options in the option youd hav to put 1=("text you want")

hope you understand, and it works.. lol I am a newb...

micjohnson
07-11-2003, 09:02 PM
for your options in the option youd hav to put 1=#
dont accually put # put the value you want it to be

xzorDOTnet
07-11-2003, 09:18 PM
ok, i got it down. Thanks a lot.