• 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

drop-down list / textbox

 
Ranch Hand
Posts: 919
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I can quite happily create a textbox in HTML, or use javascript to create a drop-down list, but I'm trying to find a way to have a combination of the two without resorting to an applet.
So I want to find a way to have a textbox in which I can type free text if I click in it, with a drop-down list button directly to its right, which offers me a drop-down if I click on that.
Is this possible using a combination of HTML and javascript?
all replies are appreciated.
 
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
DHTML and CSS are your friends. With them lies the answer to your problem. I would try overlaying the text field to cover the dropdown except for the arrow button ... and yada yada the magic happens. If you need a better head start, let me know and I will see if I can whip something up for you.
Hope this helps
------------------
Chris Stehno (Sun Certified Programmer for the Java 2 Platform)
 
George Brown
Ranch Hand
Posts: 919
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Chris,
I have to admit that although I'm aware that DHTML is dynamic html I'm not sure what CSS is. Web pages are not my speciality, but I need to make this work in a JSP.
Would it be possible to post a quick example that I could play around with?
many thanks,
George
 
Your buns are mine! But you can have this 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