I have these buttons
<button id="btn1" type="button" class="btn btn-default btn-sm margin-left-1">
<span class="glyphicon glyphicon-chevron-down"></span>
</button>
<button id="btn2" type="button" class="btn btn-default btn-sm margin-left-1">
<span class="glyphicon glyphicon-chevron-down"></span>
</button>
...etc
And I want to remove the class glyphicon-chevron-down and add glyphicon-chevron-up after a click on that button.. it's twitter bootstrap collapsing but I want to have a button with an icon there :-)
The id of the record can be put in the button tag or in the span tag, does not matter, is there any way I can check applied CSS?
For example, ${#element}.existCSS?('glyphicon-chevron-down') ?
$("#element").hasClass('glyphicon-chevron-down')