I want to use $.browser in my script, but it doesn’t work as I want. For example, in Chrome it has properties safari and webkit set to true.
Why does this happen?
Here is a fiddle.
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.
In this case it happened because your fiddle use
jQuery 1.7.2in this release you can find:Both browsers
chromeandsafariare based on webkit.Solutions:
You can use advices from docs like:
You can watch this in action here.