wood burning stoves 2.0*
The moose likes JSP and the fly likes Mark Element of List Box on Build Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Mark Element of List Box on Build" Watch "Mark Element of List Box on Build" New topic
Author

Mark Element of List Box on Build

Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1393
Is there a way to mark as selected on certain line item of a list box as it is populated?

My list code:

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60782
    
  65

What do you mean by "mark"?

If you really mean "select", then add the selected attribute to the element.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1393
Thanks Bear.
 
jQuery in Action, 2nd edition
 
subject: Mark Element of List Box on Build
 
Similar Threads
JSTL comparing variables
Comparing values using JSTL
Dependant drop down list boxes in JSP page
DIV Tag Loading Behavior is Erratic
Mixing JSP and Scriptlets throws compilation errors