I have an input field under certain conditions I want to focus the user on the input field when they press the tab key Actually, I'm copying the functionality of Google's auto populating search box. I have everything working properly in every browser, in which I have no problem ... Firefox!
If you are tabbed out of the text box, the following code works in the IE, Chrome and Safari class MyInput, your focus remains in the text box. But in Firefox, when you tab out of the textbox, you will go to the next textbox. (This is a very simple version of what I am doing. If I can get to do this work, then I am able to work my actual code.)
$ (document) Ready (work () ($ (".myInput"). Blurring (function ($ (this). Focus (); $ (this). Selection ();});}); < / Pre> Please do not suggest a fix using PS setTimeout () Thanks.
I have read the article explaining how jQuery is. (Focus) and Javascript. How they are not equal I understand it (I think), but I still am unable to understand what I am doing.
Added ... I can get it to work like this Is
$ (document) .ready (function () {$ (". MyInput"). Blur (function () {setTimeout ("$ ('. MyInput'). Focus ;); 1);});}); seems to be ahash, but I do not know why Firefox will not focus on blurring. Therefore, if you have any answer, So this Anna would be good.
As you're using JQuery should use Foksaut () method.
This is different from the blurred incident in which it helps in detecting the loss of focus from the fundamental elements (in other words, it supports event bubble).
Comments
Post a Comment