How to lock focus in a specific div using javascript/jquery
<p>I am developping some kind of modal popup using jQuery and I have some problems with the focus.</p>

<p>What happens right now, is that when I press the tab key, the focus goes to the controls hidden behind the popup.</p>

<p>Is there a way to force the focus to remain only on the controls in the popup window ?</p>
