Jquery dialog

I have a dialog box pop up when user sets focus on a dropdown. But when the user presses OK I would like that the focus returns to the dropdown with the list droped down. It always goes back up to the beginning of the page. Is there a setting to set that it can just return focus to the control that called the dialog box?