It's not working correctly for me; it just jumps to the start of the relevant part of the drop down list, but does not filter out the irrelevant cities. I'm using Safari 6.0. Also does not work on Chrome 23.0.1271.101. Does work on Firefox 13.0.1 though
Unfortunately, I don't have much skill in Javascript, so I'll leave it to those more experienced, but thought you'd want to know what browsers it's functioning in :)
Did a bit of research and found another solution for you that seems to be working in all of the browsers I'm using. I can't take any of the credit, but I will take all of the cookies :D
I have two selects on my page
I use some jquery for client side filtering
I'm using the latest version of jquery, dunno why my selects are behaving the way that they do.
I got the idea from this jsfiddle
http://jsfiddle.net/userdude/bY5LF/
here's my jsfiddle
http://jsfiddle.net/kmarimon1/P89aT/
I'll give you a cookie for enlightening me!
Thanks!
it works fine for me i don't know what is wrong for you? Sorry!
it's filtering for you? Are you sure?
Working fine for me too: http://jsfiddle.net/senff/zmzHw/
(though I wouldn't use just numbers as class names)
What browser are you using @KMarimon1?
It's not working correctly for me; it just jumps to the start of the relevant part of the drop down list, but does not filter out the irrelevant cities. I'm using Safari 6.0. Also does not work on Chrome 23.0.1271.101. Does work on Firefox 13.0.1 though
Unfortunately, I don't have much skill in Javascript, so I'll leave it to those more experienced, but thought you'd want to know what browsers it's functioning in :)
Did a bit of research and found another solution for you that seems to be working in all of the browsers I'm using. I can't take any of the credit, but I will take all of the cookies :D
Solution found here.
Codepen example with your data here