Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $( document ).ready(function() {
- /*Accordion*/
- let icon = '<i class="fas fa-chevron-circle-down"></i>';
- $( ".faq-item .panel-title a" ).each(function() {
- let phead = $(this).html();
- $(this).html(phead+icon);
- });
- $('.collapse').on('shown.bs.collapse', function(){
- $(this).parent().find(".fas").removeClass("fa-chevron-circle-down").addClass("fa-chevron-circle-up");
- }).on('hidden.bs.collapse', function(){
- $(this).parent().find(".fas").removeClass("fa-chevron-circle-up").addClass("fa-chevron-circle-down");
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement