[jQuery] Anyone know why mouse position inside div is different in Firefox and IE

2008-09-03 Thread Artzone
I have a div and I want to capture the x and y values when there is a click inside the div. This works great in Firefox and Safari but the offset seems to be wrong in IE7. There's a sample page here: http://static1.shopify.com/s/files/1/0003/0911/assets/testclick.html And this is the function th

[jQuery] How to remove duplicates from dropdown select box

2008-01-10 Thread artzone
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: Select an option Rod Rod Line Rod Reel 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 tha