Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
$('input, select').focus_select() will focus the <select> and select the <input>. select does not work on <select>s
jQuery.fn.focus_select = function() {
return this.each(function(){
var $this = jQuery(this);
if ( $'select') ) {
} else {

This comment has been minimized.

Copy link

@tordans tordans commented Jun 3, 2011

Thanks, I have been writing about this to make more ux-designer aware of this possiblity (in german).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment