I want to modify css of an element with jQuery only if the user agent is IE9 or later. How can I do this? This is my code:
var lancetta = $(document).find('.seconds');
if(msie version is >= 9){
lancetta.css({'-ms-transform' : 'rotateZ(360deg)'});
}else{
lancetta.css({'-webkit-transform' : 'rotateZ(360deg)',
'-moz-transform' : 'rotateZ(360deg)',
'transform' : 'rotateZ(360deg)'});
}