Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

dynamic list box issue

 
Mohammed Riaz
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,

I have created dynamic list box using JSTL tags(<form:select>getting values from server side). But, my requirement is to change dynamic list box
to auto pick up the value from drop down using javascript or DHTML.

I have tried google i haven't got solution. All solutions are only
client side drop down. I want code to change the list box by calling some funtion in javascript or etc.. to change the list drop-down to auto pick..
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64623
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Mohammed Riaz:
I have created dynamic list box using JSTL tags(<form:select>getting values from server side).

That is not a JSTL tag. It is a Struts tag.

I have tried google i haven't got solution. All solutions are only
client side drop down.

That makes no difference. All dropdowns are client side. All the Struts tag is doing is to create the HTML for the dropdown for you. It's still a dropdown like any other just as if you had coded it yourself in HTML. Do a View Source of the page to see the generated HTML.
 
Mohammed Riaz
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok friend.. I need some info javascript code that change the functionality
of the combo box as auto pick up value.
Example..

drop down List contains (i) all accounts
(ii) 888
(iii) 999


If you press 8 automatially 888 should have to be selected..

If you have any sites or code please send...


Thanks
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Firefox and IE7 already support this out of the box.

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic