Skip to main content

Bug Tracker

Side navigation

#10998 closed bug (invalid)

Opened December 12, 2011 06:15AM UTC

Closed December 12, 2011 07:31AM UTC

Last modified December 12, 2011 08:18AM UTC

.focus() wont work in firefox

Reported by: isaqzarekari_1786@yahoo.co.in Owned by:
Priority: low Milestone: None
Component: event Version: 1.7.1
Keywords: Cc:
Blocked by: Blocking:
Description

As I am using Jquery in my application. And using .focus() to handle the application through key board. It works fine in IE but not in firefox. Let me know the solution please.

Attachments (0)
Change History (3)

Changed December 12, 2011 06:30AM UTC by anonymous comment:1

Replying to [ticket:10998 isaqzarekari_1786@…]:

As I am using Jquery in my application. And using .focus() to handle the application through key board. It works fine in IE but not in firefox. Let me know the solution please.

Hey I got the solution

function sampledFunction()

{

window.setTimeout(function ()

{

$('#mobileno').focus();

}, 0);

return false;

}

Changed December 12, 2011 07:31AM UTC by sindresorhus comment:2

component: unfiledevent
priority: undecidedlow
resolution: → invalid
status: newclosed

Changed December 12, 2011 08:18AM UTC by anonymous comment:3

Replying to [comment:1 anonymous]:

Replying to [ticket:10998 isaqzarekari_1786@…]: > As I am using Jquery in my application. And using .focus() to handle the application through key board. It works fine in IE but not in firefox. Let me know the solution please. Hey I got the solution function sampledFunction() { window.setTimeout(function () { $('#mobileno').focus(); }, 0); return false; }