Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

how to toggle fa fa-caret-down and fa fa-caret-up using jquery

      $(document).ready(function () {
            $('.fa-caret-down').on('click', function () {
                if ($(this).hasClass('fa-caret-down')) {
                    $(this).removeClass('fa-caret-down').addClass('fa-caret-up');
                }else{
                    $(this).removeClass('fa-caret-up').addClass('fa-caret-down');
                }
            });
        });
Comment

PREVIOUS NEXT
Code Example
Javascript :: jquery var_dump array 
Javascript :: jquery window new tab with post 
Javascript :: change build directory react 
Javascript :: object values template literal js 
Javascript :: how to copyy a string variable to clipboard in js 
Javascript :: online javascript compiler 
Javascript :: find duplicate values in array javascript 
Javascript :: joi regex validate 
Javascript :: csrf javascript 
Javascript :: how to add multiple elements to A new array javascript 
Javascript :: module export in node js 
Javascript :: react native tab navigation header 
Javascript :: js loop through function arguments 
Javascript :: multiple checkbox react 
Javascript :: get value of textarea jquery 
Javascript :: for loop java script 
Javascript :: Run project in visual studio with iis express 
Javascript :: Vue 3 script setup props emits 
Javascript :: js download file from webserver 
Javascript :: get all parent nodes of child in javascript array 
Javascript :: mongoose remove data 
Javascript :: flatten json python 
Javascript :: aimbot scripts island royale 
Javascript :: tinymce get plain text 
Javascript :: get the location of an item in an array 
Javascript :: react-native-restart 
Javascript :: nestjs init 
Javascript :: mongodb text search exact match 
Javascript :: comment in js 
Javascript :: json to string 
ADD CONTENT
Topic
Content
Source link
Name
4+2 =