Answers for "jquery do something if toggle open and close"

0

jquery do something if toggle open and close

$('.advance-view').click(function() {
    $('#advance-control').slideToggle('slow', function() {
        if ($('#advance-control').is(':hidden'))
        {
            $('.advance-view').css("background-color", "#2B509A");
        }
        else
        {
            $('.advance-view').css("background-color", "#4D6837");
        }
    });             
});
Posted by: Guest on February-02-2021

Code answers related to "jquery do something if toggle open and close"

Code answers related to "Javascript"

Browse Popular Code Answers by Language