jquery, set focus on the first enabled input or select or textarea on the page -


it's straightforward. want set focus first enabled , not hidden control on page.

for textbox, have

$("input[type='text']:visible:enabled:first").focus(); 

but want "all" form input controls: textbox, checkbox, textarea, dropdown, radio in selector grab first enabled , not hidden control. suggestions?

$(':input:enabled:visible:first').focus(); 

Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -