I want to clarify, I am not looking for a way to create hyperlinks within options in a drop-down menu. I am looking for a way to hyperlink to one of those options in a drop-down menu from an external page.
Take for instance the following scenario, there's page A and on page B there's a drop-down menu with X options.
Page A provides a link to page B but once you click and land on page B, an option is pre-defined selected.
It is basically an anchor link but I want it to use as an external link.
Page A:
It provides a link to Page B with "Option two" pre-selected
Page B:
<select>
<option id="one">Option one</option>
<option id="two">Option two</option>
<option id="three">Option three</option>
</select>
I believe this may be accomplish with jQuery or so I've been told.
UPDATE: I mistakenly used <ul></ul>
, <li></li>
when I meant <select></select>
, <option></option>
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…