SELECT "popup" (aka "jump menu") like autonav? Dynamic?

Permalink
I'm trying to figure out how to do an old-school "pop-up" menu that dynamically calls in the page title and sticks it in the option fields.

<select>
<option>.....</option>
<option>.....</option>
<option>.....</option>
<option>.....</option>
</select>

That kind of menu. I can't seem to find any info on how this would be done.

 
zoinks replied on at Permalink Reply
zoinks replied on at Permalink Reply
yeah, this doesn't work

is there a way to make a jump menu?
zoinks replied on at Permalink Reply
Halfway there...

I used this trick to turn a regular autonav into a jump menu:
http://css-tricks.com/convert-menu-to-dropdown/...

Now, I just need to make the jump menu's default option match the page you're on. For example, if the page you are on is "www.domain.com/valueC.html", then that option should be selected (ie. <option selected="selected">) when you are on that page, like this:

<select>
<option value="www.domain.com/valueA.html">Option A</option>
<option value="www.domain.com/valueB.html">Option B</option>
<option selected="selected" value="www.domain.com/valueC.html">Option C</option>
<option value="www.domain.com/valueD.html">Option D</option>
</select>


It's basically like being able to style nav-selected in an autonav, except all I'm trying to do is give the corresponding option a "selected" value so that the proper option displays in the jump menu to help you keep track of where you are.