Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

drop-down list / textbox

 
Ranch Hand
Posts: 919
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
 
    Bookmark Topic Watch Topic
  • New Topic