/    Sign up×
Community /Pin to ProfileBookmark

document.write issue

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?

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@micjohnsonJul 12.2003 — 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...
Copy linkTweet thisAlerts:
@micjohnsonJul 12.2003 — for your options in the option youd hav to put 1=#

dont accually put # put the value you want it to be
Copy linkTweet thisAlerts:
@xzorDOTnetauthorJul 12.2003 — ok, i got it down. Thanks a lot.
×

Success!

Help @xzorDOTnet spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...