/    Sign up×
Community /Pin to ProfileBookmark

Help please!

I need to write a javascript function. There are two fields “No of Items” and “Item ID”. “Item ID” has 5 input fields. If the field “No of Items” is chosen as 1, then “Item ID” needs 1 Id input. If the “No of Items” is 2, 2 ID inputs are needed and so on. Could anybody help me in writing this function please.

<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01//EN”
http://www.w3.org/TR/html4/strict.dtd“>
<html lang=”en”>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″>
<meta name=”Content-Script-Type” content=”text/javascript”>
<meta name=”Content-Style-Type” content=”text/css”>
<title>Example</title>

</head>
<body>

<form action=”” onsubmit=”return check (this)”>

<h1>Item List</h1>

<p>

<label>No. of Items: <input name=”number” type=”text” size=”9″></label>

</p>
<p>

<label>Item ID:<input name=”itemid” type=”text” size=”10″>
<input name=”id1″ type=”text” size=”10″>
<input name=”id2″ type=”text” size=”10″>
<input name=”id3″ type=”text” size=”13″>
<input name=”id44″ type=”text” size=”11″></label></p>
</p>
<tr>
<td ALIGN=LEFT width=”222″> </td>

<td width=”218″> <input type=submit value=Submit> <INPUT type=reset value=”Clear Form”></td>

</tr>

</table>

</form>

</body>
</html>

Thanks

to post a comment
JavaScript

7 Comments(s)

Copy linkTweet thisAlerts:
@KorDec 08.2004 — Some of us still expect some details at

http://www.webdeveloper.com/forum/showthread.php?s=&threadid=50859

and you open a new thread with the same problem

... Is it a responsible behaviour?:mad:
Copy linkTweet thisAlerts:
@Willy_DuittDec 08.2004 — Hmmmm;

A copy and paste cross-post would seem to dictate a copy and paste response... At the very least for the benifit of others whom are unaware of previous responses....

[i]Originally posted by Kor [/i]

[B]What Id?... Whose Id? Could you detail for us, please? [/B][/QUOTE]
Copy linkTweet thisAlerts:
@BhavyaauthorDec 08.2004 — I didn't mean to be not responsible, it's just that I have edited the previous message as well but no one noticed it. Instead of leaving it, I thought I will start a new thread.

Sorry if you still think it is not responsible behaviour.
Copy linkTweet thisAlerts:
@ema_bDec 08.2004 — Take no notice of that romanian person they are very mean! I have no clue about your problem unfortunately i have so many of my own! theses forums are for help not for people trying to be a ass so hang in there m8 some one will help!

Ema xxx
Copy linkTweet thisAlerts:
@KorDec 08.2004 — 
Take no notice of that romanian person they are very mean!
[/quote]

ha? ?

I guess that I've helped here more people than your mean thougths, if possible...?

I just wanna say that Bhavya should've read Message posting Guidelines at http://www.webdeveloper.com/forum/showthread.php?s=&threadid=16096 before writing twice the same thread...

Even so, it looks a nonsense to me. He left away a thread where 2 people who wanted to help him were waiting for some details, in order to open a new thread with the same confused demand... If anyone here would open tens of same thread couple of times a day, what will this forum become?
Copy linkTweet thisAlerts:
@scragarDec 08.2004 — I don't think he/she actualy meant to cause any problems with posting twice, like they said thay though the thread had sunk and so they started a new one...

on the other hand a quick search would have found it and they could easily have bumped it back to the top page...

but bumping is not nice since there are reasons threads started to die off...

I'm so confused trying to act as a (not very good) voice of reason...
Copy linkTweet thisAlerts:
@Khalid_AliDec 08.2004 — ok here it goes, I post again explain your question.....don't start a new thread now though..
×

Success!

Help @Bhavya 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 6.2,
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: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

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