473,396 Members | 1,772 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

multiple inputs in an input box

tolkienarda
316 100+
hi all i've seen what appears to be a prompt box with two inputs, and either i am realy stupid cause i don't know how to do it or they werent using a prompt box. if i am stupid and it is easy please help the ignorant but if there is somthing tricky i need to do then please save me.

thanks
eirc
Jan 4 '07 #1
3 5311
b1randon
171 Expert 100+
hi all i've seen what appears to be a prompt box with two inputs, and either i am realy stupid cause i don't know how to do it or they werent using a prompt box. if i am stupid and it is easy please help the ignorant but if there is somthing tricky i need to do then please save me.

thanks
eirc
As far as I know you can only prompt for one response at a time. You can do several in a row but not in the same window.
Jan 4 '07 #2
ithink you want to say that "using prompt for more then one input with only one statement"
you have to do
Expand|Select|Wrap|Line Numbers
  1. <script>
  2. ja=new Array(5);
  3. var as = "The names you entered are";
  4. for(a=0;a<ja.length;a++) {
  5. ja[a]=prompt("Enter Name"+a,"");
  6. as += "\n" + a +"Array["+a+"]=" + ja[a];
  7. }
  8. document.write("The values u enterd are"+a+as);
  9. //this will have five  value and show it
  10. </script>
  11.  
  12.  
Jan 10 '07 #3
acoder
16,027 Expert Mod 8TB
hi all i've seen what appears to be a prompt box with two inputs, and either i am realy stupid cause i don't know how to do it or they werent using a prompt box. if i am stupid and it is easy please help the ignorant but if there is somthing tricky i need to do then please save me.

thanks
eirc
Perhaps, the person used DHTML to display the prompt as a div using two text boxes?
Jan 10 '07 #4

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

Similar topics

66
by: Darren Dale | last post by:
Hello, def test(data): i = ? This is the line I have trouble with if i==1: return data else: return data a,b,c,d = test()
6
by: x. zhang | last post by:
Hi Guys, We know that we can use <input type=file ...> to upload one file per time to the server. My question is if there are some way to upload multiple files per time to the server. (Of...
12
by: Forti2ude | last post by:
Hello, I have a simple form... <form> <select name="foo" multiple> <option value="1">one</option> <option value="2">two</option> <option value="3">three</option> </select>
1
by: Avin Patel | last post by:
Hi, I am looking for script to allow multiple files can be uploaded/attached in webform ( mostly cgi/perl or php). But I don't like the multiple input boxes using "<input type="file" size="40"...
6
by: Ben Hallert | last post by:
Hi guys, I'm trying to figure out what bone headed mistake I made on something I put together. I've got a form (named 'context') that has a variable number of select-multiple inputs on it. ...
4
by: jedimasta | last post by:
Good evening all, I'm a relatively new to javascript, but I've been working with ColdFusion and PHP for years so I'm not necessarily ignorant, just stuck and frustrated. Using ColdFusion I'm...
3
by: celery6541 | last post by:
Hi all, I need to implement multiple input fields that change depending on selections from the user. For example, A user may be prompted to enter data for multiple inputs who's names are incremented...
17
by: Sam Kong | last post by:
Hello, There are 1 or more select elements with the same name in a form. Let's say that the name of the select is 'select1' and the name of the form is 'form1'. If there's only one select I...
10
by: S James S Stapleton | last post by:
Is volatile necessary anymore? I have a two-thread piece of code I've been testing to figure out what volatile does (fairly simple code, uses pthreads). I have an update thread (variables passed as...
1
by: lolcat | last post by:
Hi guys, new here and to javascript, I have this form that I am trying to you javascript to validate the multiple input text boxes. form as follows <form action="login.php" method="post"...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.