I have this code :
<span id="sn1">
<a href="javascript:removeEtape(2);" class="glyphicon glyphicon-remove"></a>
<a id="aUn1" href="javascript:upEtape(1,0);" class="glyphicon glyphicon-chevron-up" aria-hidden="true"></a>
<a id="aDn1" href="javascript:downEtape(1,2);" class="glyphicon glyphicon-chevron-down" aria-hidden="true"></a>
my text here<br></span>
I need change color of "glyphicon glyphicon-chevron-up" after I have selected id "aUn1".
I try this but, it doesn't works :
$('#aUn1').attr('[class$="glyphicon-chevron-up"]').css('color', 'grey');
Can you help me please ?