I'm setting the z-index of a css property using this code :
$( ".myIcon").attr("z-index" , 1);
But the property is not updating correctly. When I inspect the attribute using Chrome developer tools the z-index remains the same. Is there something I need to fire after using .attr so that the property is updated by the browser ?