473,387 Members | 1,721 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,387 software developers and data experts.

collecting 2 values and sending them to a function.

13
hi
I forgot how to do this and how it is called.
basically i wan to send 2 values from 2 different select tag to a submit button .
eg.

Expand|Select|Wrap|Line Numbers
  1.  Name1<SELECT  NAME="first_list" >
  2. <Option value="1" >Name 1</option>
  3. <Option value="2" >Name 2</option>
  4. </SELECT>
  5. <br /><br />
  6.  Name2<SELECT  NAME="second_list" >
  7. <Option value="1" >Name 1</option>
  8. <Option value="2" >Name 2</option>
  9. </SELECT>
  10. <input type="submit" value="Submit" onchange="showUser(first_list.value,second_list.value)"
I don't remember how to call that select option value and send it to a Java function.so that value 1 from first name option is sent and 2 from second name option is sent as well ,just as an example.
Oct 14 '11 #1
3 1530
drhowarddrfine
7,435 Expert 4TB
Select options can't be called and HTML can't send anything to a Java function so I'm not sure what to make of your question.
Oct 16 '11 #2
MOzgaf
13
Am sorry I didn't mean call as a html thing.but i want to send the value to a function then the select onchange="SOMEfunction()". this way when he drop list changes the new value is sent to this function.I am looking for a way to send 2 select values instead of just one like this.so i was thinking to use the submit button and 'call/name' which value i want to send.
thank you for your interest.
Oct 18 '11 #3
drhowarddrfine
7,435 Expert 4TB
The only way to do what you want is with javascript, which is not java, but that's a different board. You need to ask there.
Oct 18 '11 #4

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

Similar topics

1
by: David Isaac | last post by:
Alan Isaac wrote: > Default parameter values are > evaluated once when the function definition is > executed. Where are they stored? ... Where is this documented? Forgive any poor phrasing: I'm...
0
by: Mike Copeland | last post by:
In the following code I am calculating 2 values when the "Compute Distance" button is pressed. I would like to find a way to "return" both value to the form so I can show both when the calculation...
5
by: Abby Lee | last post by:
I want to check the value for a dropdown menu for "other" to make it so they can add a location that is not on the list. If the value = "other" I will bring up a dilog box they can enter their...
1
by: Marco | last post by:
Hi all I am using .NET reflection to examine a stack trace, using the StackTrace, StackFrame, MethodInfo, ParameterInfo and FieldInfo classes. I can easily discover all methods in the call...
9
by: JD | last post by:
Hi guys What if I need to return two values from a function. What's the best way to do it? Function is to load a text file into memory like so: -----8<----- char *LoadFile(char *infile)
6
by: jaiwilliams | last post by:
Hi guys, I've got the following code: <? $msg = "E-MAIL SENT FROM www.jaiwilliams.com\n"; $msg .= "Sender's Name: $_POST\n"; $msg .= "Sender's E-Mail: $_POST\n"; $msg .= "Message:...
5
RMWChaos
by: RMWChaos | last post by:
I am working on a script to create and remove DOM elements, and I want to make it as efficient as possible (no redundancies). Because DOM elements each have their own set of attributes, the function...
0
by: Karlo Lozovina | last post by:
Hi all! I have a runTest() function inside my module, which sets up and initializes lots of objects and performs some basic tests on them. Usually (from IPython) I just write `run my_module.py`,...
6
by: chazzy69 | last post by:
Hi, im just wondering if some how possible to return 2 values from the same function that arn't conditional, that is it always returns 2 values. for e.g. (this is not what my function actually...
3
by: bubblediana | last post by:
<?php $county = array (´Kent´,´West Susses´,´East Sussex´,´Sommerset´,´Hampshire´,´London´,´Essex´); $hear = array (´Google´,´Other Search Engine´,´Magazine´,´Recommendation´); function...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.