Search
 
SCRIPT & CODE EXAMPLE
 

HTML

toggle font awesome icon

<!-- HTML -->
    <button class="btn btn-warning">
      <i id="tgl" class="fas fa-star"></i>
    </button>
<!--  -->

<script>
      $('button').click(function () {
        $('#tgl').toggleClass('fa-star fa-grin-stars');
      });  
</script>
Comment

PREVIOUS NEXT
Code Example
Html :: bullet list html mdn 
Html :: html video play pause 
Html :: express send html file 
Html :: std map count vs find 
Html :: stop website from overscrolling 
Html :: html number format decimal places 
Html :: open modal when clicking fullCalendar event bootstrap 
Html :: Change color of calendar icon in HTML Date Input 
Html :: tailwind flex column on mobile 
Html :: android back arrow 
Html :: Responsive container centered 
Html :: safari input type number problem with decimals 
Html :: html input date min 
Html :: set default selected option in select form laravel 
Html :: html error font 
Html :: favicon react render 
Html :: fa fa users-class 
Html :: iframe attributes 
Html :: link fa fa icon 
Html :: prevent from going to a function html click 
Html :: oninput event 
Html :: html link to download file 
Html :: free html signature template 
Html :: bootstrap 5 background color 
Html :: What is the correct HTML element for playing audio files? 
Html :: custom checkbox with image css 
Html :: placeholder textbox wpf 
Html :: laravel raw html 
Html :: html mobile app template 
Html :: underline text in html 
ADD CONTENT
Topic
Content
Source link
Name
3+1 =