Does the icon disappear when toggle?

! [clipboard.
clipboard.png
ejRm)

I want to switch the icon direction when clicking the icon through jquery"s toggle, and expand or shrink the panel at the same time, but through the following code, when the icon changes automatically, it disappears. What"s going on?

$(".glyphicon-chevron-up"). Toggle (

)
        function () {
            $(".hideShow").css("display","table-row");
            // $(this).removeClass("glyphicon-chevron-up");
            // $(this).addClass("glyphicon-chevron-down");
        },function(){
            $(".hideShow").css("display","none");
            // $(this).removeClass("glyphicon-chevron-down");
            // $(this).addClass("glyphicon-chevron-up");

        }
    )

Mar.30,2021

after testing, multiple function switching is not supported for toggle version 1.8 or above.

$('.glyphicon-chevron-up').click(function() {
     $(".hideShow").toggleClass('show-class')
}

change toggleClass to deal with it

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-1b36598-2c00d.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-1b36598-2c00d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?