wood burning stoves 2.0
The moose likes HTML, CSS and JavaScript and the fly likes urgent...select ....option... doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "urgent...select ....option... doubt" Watch "urgent...select ....option... doubt" New topic

urgent...select ....option... doubt

s srikanth

Joined: Jul 06, 2001
Posts: 14
Hi ,
i am populating my combo box, that i was created using <select>
and <option> tags, with some values.I have one requrement like this . On selecting one particular value from the combo box , i
have to print that value on the browser.
How can i achieve this . Examples are also welcome.
My sample code is :
<title> Dynamic values </title>

<select name="name" >
<% int a=10;
int b=20;
for(int y=a;y<b;y++) { %>
<% } %>
thanx in advance ,
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
If you only have one value that needs to trigger a function and your values are being created dynamically by server-side code, then your server-side code will have to generate some javascript for you, too. In your <option> tag, create an event handler like this:

Then you can have your server-side code generate myfunc() to include a test for your particurlar value.
I agree. Here's the link: http://aspose.com/file-tools
subject: urgent...select ....option... doubt
It's not a secret anymore!