I'm new to jquery but I'm lovin it so far.

Can anyone tell me the best way to remove duplicates from a dropdown
that looks like this:

<form name="myform">
<select name="mylist" id="mylist">
<option>Select an option</option>
<option value="Rod">Rod</option>
<option value="Rod">Rod</option>
<option value="Line">Line</option>
<option value="Rod">Rod</option>
<option value="Reel">Reel</option>
</select>
</form>

I can't change the the contents of the dropdown because they're
written by a CMS so I'd like to at least make sure that there are no
dupes in it.

Also, I'd like to jump to a new href based on the option chosen. I'm
using it to filter search results. Normally I'd use an  onchange
attached to the select but I know I can bind an event to the select in
jquery, I'm just not sure how to then use the value selected to jump
to my new url.

Many thanks in advance
Art

Reply via email to