• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

dynamic list box issue

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Firefox and IE7 already support this out of the box.

Eric
 
What a show! What atmosphere! What fun! What a tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic