Font icon direction can not be converted?

<a class="glyphicon glyphicon-chevron-down" id="row"></a>

$("-sharprow").click(function(){
    $(this).toggleClass("glyphicon glyphicon-chevron-up");
})

Why can"t I change the direction of the arrow?


The use of

toggleClass is to remove the calss attribute if there is a class attribute in the selected page element, and to add the class attribute if there is no class attribute.

<a class="glyphicon glyphicon-chevron-down" id="row"></a>

$("-sharprow").click(function(){
    $(this).toggleClass('glyphicon glyphicon-chevron-up');
}) 

when clicked once, the code removes' glyphicon' and adds' glyphicon-chevron-up'
code to

.
<a class="glyphicon-chevron-down glyphicon-chevron-up" id="row"></a>

so the icon cannot be displayed

if you want to switch, you can change it to

.
$("-sharprow").click(function(){
    $(this).toggleClass('glyphicon-chevron-down glyphicon-chevron-up');
})
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b4486f-4f382.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b4486f-4f382.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?