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"
The event could not be stopped because the change event is fired in any case.

One possibility could be to set a certain timeout between the event fired and the actual call of the $.get method in order to take your case into account, but certainly it isn't an elegant solution.

Otherwise you may call the return function only if a certain other element gets the focus (for example if there is a textbox, after your dropdown list).

I would not care too much about it as it seems your popup HAS to be shown on Dropdown change. If it is not critical, you may have a help button on dropdown's right that popsup your window on button's click.