*
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to get last selected value in list box?
 
Similar Threads
dymamic generate text input field
skip value in logic: iterate
populating one dropdown box depending on the value of other dropdown box
How to get total count of selected Items of <Select>
In List Highlighting previous selected values