javascript - addclass function not working in firefox and ie -
here code adding class on dropdown on click of button.
$('#search_select1').addclass('borderclass');
and css class
.borderclass{ -webkit-opacity: 0.25; -moz-opacity: 0.25; opacity: 0.25; -webkit-transition: 3s ease; -moz-transition: 3s ease; -ms-transition: 3s ease; -o-transition: 3s ease; transition: 3s ease; }
its working fine on google chrome class not getting add in firefox , ie. please me out. in advance
please insert code between
$(document).ready(function(){ });
for example:
$(document).ready(function(){ // other code $(document).ready(function(){ $('#search_select1').addclass('borderclass'); }); });
it's work , sure.
Comments
Post a Comment