Forum Moderators: open

Message Too Old, No Replies

Possible to block select box from dropping down

         

Nutter

6:43 pm on Jun 22, 2007 (gmt 0)

10+ Year Member



I'm trying to use a dropdown select box to trigger a hidden div showing so that it still looks like the dropdown is, well, dropping down. I can get the div to show, that was pretty easy. What I can't seem to get to work is having the dropdown not drop. It still comes up in front of the now showing div.

I thought a return false; might work, but it didn't wind up being that easy. Any suggestions?

DrDoc

6:48 pm on Jun 22, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Well, if you don't want to use the dropdown, simply don't use a <select> element :)

Just use a regular input field and a button next to it.

Nutter

6:52 pm on Jun 22, 2007 (gmt 0)

10+ Year Member



That would be the easy way :) But how would I make the button always match what a dropdown arrow is supposed to look like depending on OS and browser?