Forum Post: RE: Hide keyboard

  • Thread starter Thread starter ymaisonn
  • Start date Start date
Status
Not open for further replies.
Y

ymaisonn

Guest
You can't trigger the focus event on hidden field. It will even trigger an error with IE, according to jQuery doc. "Attempting to set focus to a hidden element causes an error in Internet Explorer. Take care to only use .focus() on elements that are visible. To run an element's focus event handlers without setting focus to the element, use .triggerHandler( "focus" ) instead of .focus()." http://api.jquery.com/focus/ Alternatively, you may set the field in a div and set it to transparent (opacity:0) HTH

Continue reading...
 
Status
Not open for further replies.
Back
Top