I facing a problem is my css is have a some bug when firefox is lower than 2.0. I would like to detect the browser to fix my css bug.
This is my code:
$(
On my machine (Mac OS X 10.6), $.browser.version
in Firefox 4 reports "2.0"
. So, it looks like your code is valid, but there's an issue with JQuery.
From the http://api.jquery.com/jQuery.browser/:
We recommend against using this property; please try to use feature detection instead (see jQuery.support).
If you need reliable browser detection in Javascript, check out one of the many tutorials online (such as this one).