I've got a division (<div>) which contains a form and I want to find out using jQuery if any of the <input>s have focus and if none of them have I want to call a function.
What is the best way of doing this?
Rough idea of div/form structure.
<div id="section1">
<form ...>
<input type="text" id="v1">
<input type="text" id="v2">
<input type="text" id="v3">
<input type="text" id="v4">
<input type="checkbox">
</form>
</div>
Thanks.