Question: I have a drop down list on my webpage with a jquery event attached to the change event. On change I use ajax to load a partial view in a popup window.

When the user uses the keyboard to navigate through the list of items but then clicks a link on another part of the page I momentarily see my popup window. This is obviously happening as when the user clicks a link elsewhere on the page, the change event is triggered on the drop down first.

Are there any neat solutions to solve this problem? A simple solution would be to fire the event on keyup but I don't want this functionality to happen.

Here's the change event snippet of code

```
$('#lookup').change(function()
{
    $.get(..//load template

```

Answer: 
If its an ajax call, there is chance that your ajax call getting cached. Make sure you are disabling cache. something like "cache:false"
I'm a little confused by your question. But assuming that the "change" isn't a true change, I think you could keep a variable for "lastSelected" and, when a change occurs, check it against that. If it's the same, ignore it. If it's different, fire off your Ajax request and update the value of "lastSelected".