make links in drop down box work?

  • 1
  • Question
  • Updated 8 years ago
  • Answered

<option value="new-cars/2007.php">2007</option>
<option value="new-cars/2008.php">2008</option>
<option value="new-cars/2009.php">2009</option>
<option value="new-cars/2010.php">2010</option>

I also tried using

<option><a href="new-cars/2007.php">2007</option>

and that didn't work either!

Should I add a submit button? But if i did that, I would have to know what form action and method to use as well.

A little help would be appreciated!

Photo of Donald


  • 2991 Posts
  • 37 Reply Likes

Posted 8 years ago

  • 1
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
Try putting the a href tag after the option value tag - just before the text.

e.g. <!--<option value="new-cars/2007.php"><a href="">2007&lt;/a>&l...>
Photo of Donald


  • 2991 Posts
  • 37 Reply Likes
thanks sanja, I found a more complex option that seems to work just fine, but I appreciate the help! :)