Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I automatically drop down a list?

Status
Not open for further replies.

LonnieJohnson

Programmer
Apr 16, 2001
2,628
US
I an asp.net 2.0 application that has a text box and a drop down on a page. When I enter into the text box, I want the drop down to automatically show the list or "drop down".

1) I don't see an ASP.net On Enter or Got Focus event for my text box.

2) I don't see an ASP.net .Dropdown method on my dropdown box.

Can I accomplish this via js?

ProDev, MS Access Applications
Visit me at ==>
May God bless you beyond your imagination!!!
 
Can I accomplish this via js?

Nope


-kaht

Lisa, if you don't like your job you don't strike. You just go in every day and do it really half-assed. That's the American way. - Homer Simpson
 
ratzzzz

Not what I wanted to hear, but what I needed to hear. Thanks.

ProDev, MS Access Applications
Visit me at ==>
May God bless you beyond your imagination!!!
 
Besides coding your own DHTML dropdown, there's a small workaround I suppose. When you focus in the textbox you can set the multiple value of the <select> to true:

Code:
document.getElementById("theSelectBoxId")[!].multiple[/!] = true;

However, I'm not sure how you put it back to normal after changing that setting, cause I'm pretty sure you can't just set it to false to change it back, but I'll admit I didn't try it.

-kaht

Lisa, if you don't like your job you don't strike. You just go in every day and do it really half-assed. That's the American way. - Homer Simpson
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top