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
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
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.