Click to See Complete Forum and Search --> : Help please!


Bhavya
12-07-2004, 10:27 AM
I need to write a javascript function. If the user chooses "No of Items" 1, then 1 Id is needed. If the "No of Items" is 2, 2 IDs 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="refno" 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

Kor
12-07-2004, 10:44 AM
then 1 Id is needed.

What Id?... Whose Id? Could you detail for us, please?

Bhavya
12-07-2004, 11:14 AM
Sorry,

I meant Item ID.
The number of Item ID s should be the same as no. of Items. I hope this is clear enough.

Khalid Ali
12-07-2004, 11:25 AM
repfrase your question, its still very vague and hard to understand....