It\'s fairly straightforward. I want to set focus to the first enabled and not hidden control on the page.
For a textbox, I have
$(\"input[type=\'t
Try this:
$("input[type='text']:enabled","another selector","another selector").first().focus();