vendredi 25 avril 2014

Browser recognition in jquery


Vote count:

0




Trying to force a certain css on div in ie. So far only jquery left. Used this code, but it didn't do anything. Where is my mistake?



$(document).ready(function(){
if ($.browser.msie){
$(".cartwrap").css('display','none');
}
});


asked 2 mins ago


1 Answer



Vote count:

0




According to jQuery Website:



Contains flags for the useragent, read from navigator.userAgent. This property was removed in jQuery 1.9 and is available only through the jQuery.migrate plugin. Please try to use feature detection instead.



If you are using jQuery Version >= 1.9, please use the jQuery.migrate plugin.



answered 10 secs ago





Aucun commentaire:

Enregistrer un commentaire