To check if user is using IE should this work :
if( $.browser.msie)
alert('in IE');
Is this applicable to all versions of IE ?
To check if user is using IE should this work :
if( $.browser.msie)
alert('in IE');
Is this applicable to all versions of IE ?
Is this applicable to all versions of IE ?
Yes, it is applicable to all versions of IE (I've just tested on ie7, ie8, ie9, which you should have)
Its not at all recommended, from the jQuery docs itself,
Because $.browser uses navigator.userAgent
to determine the platform, it is vulnerable to spoofing by the user or misrepresentation by the browser itself. It is always best to avoid browser-specific code entirely where possible. The $.support property is available for detection of support for particular features rather than relying on $.browser.