I have a jquery code like:
alert(!$('#txtSearchTextBox').is(":focus"));
Now the safari shows the message true and the other browsers show the message false when i write in the textbox.
Any help is appreciated
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Using this jsFiddle I tested it as working in Internet Explorer 9.
Looking at the jQuery bugs, I found that there is a jQuery or Chrome bug which causes it to fail on that platform. Testing in my version of Chrome it also fails.
I did not test with FireFox as the jQuery bug stated it worked there. And you already said it works for Safari. I’m guessing your “other browsers” was Chrome.