aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes How to get last selected value in list box? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How to get last selected value in list box?" Watch "How to get last selected value in list box?" New topic
Author

How to get last selected value in list box?

Nitin Jawarkar
Ranch Hand

Joined: Dec 18, 2004
Posts: 79
Hello all,

I have used select tag in html, on first page i select one from list and
stored that in database SQL server, then on one id i m getting all data related to that id but problem is how to get value of selected item in list and also other should display in list box.
Code is look like this....

<select name="group" >
<cfoutput query="user">
<option>#company_group#</option><br>
</cfoutput>
</select>
</select>
in output it shows onle one value from table
Thanks....


Cheers<br />Nitin
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
cold fusion eh....ewww...but that is a different story?

Not sure what you are asking exactly. Are you asking how to add a value?

<option value="YourValue">

Eric
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to get last selected value in list box?