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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

anchor in select box

Status
Not open for further replies.

foxphpbomb

Programmer
Apr 10, 2007
29
US
I'm wondering if there's a way to create a form where when the user submits it after selecting a value in a select box, that value would get passed as an anchor.

<select name="level">
<option value="level3">Level 3</option>
</select>

so basically when the form is submitted it would load as:


page.php#level3
 
Code:
<select name="level" [!]onchange="document.location='page.php#' + this.value"[/!]>
<option value="level3">Level 3</option>
</select>

If you need any further assistance see here forum216 since this is not really an HTML or CSS question.

-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