Monday, December 22, 2008

Making a Link Select a Select Box in Javascript

I needed to have a link select an option within a selectbox.  What I wanted to do was have a bunch of links out there and if a user clicks one, move down the page and have a value in my selectbox already selected according to that link.

I found a solution online that worked great.  It uses javascript, but works wonderfully.

Since blogger doesn't let me paste code easily, I'll just direct you to the link.  If it ends up being dead in the future, please leave a comment and I'll post the code.



No comments: