Oleszka Posted August 9, 2006 Share Posted August 9, 2006 How to create drop-down list <select> <option value ="volvo">Volvo</option> <option value ="saab">Saab</option> <option value ="opel">Opel</option> <option value ="audi">Audi</option></select>and for example I choose Volvo and then I go to http://volovopage.comif i choose Saab so I go to http://saabpage.com and so on...How to make for every option its url where I want to go Link to comment Share on other sites More sharing options...
aspnetguy Posted August 9, 2006 Share Posted August 9, 2006 <select onchange="document.location=this.options[this.selectedIndex].value"> <option value ="http://volvo.com">Volvo</option> <option value ="http://saab.com">Saab</option> <option value ="http://opel.com">Opel</option> <option value ="http://audi.com">Audi</option></select> Try that Link to comment Share on other sites More sharing options...
Oleszka Posted August 9, 2006 Author Share Posted August 9, 2006 <select onchange="document.location=this.options[this.selectedIndex].value"> <option value ="http://volvo.com">Volvo</option> <option value ="http://saab.com">Saab</option> <option value ="http://opel.com">Opel</option> <option value ="http://audi.com">Audi</option></select> Try that thanx works Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now