skip to Main Content

Replacing font-awesome icon with jQuery

I am want to replace a icon (Font Awesome) with an other. I try this : const toolbar1 = document.querySelector("#toolbar1"); const iconToReplace = toolbar1.querySelector(".fa fa-arrows-alt"); iconToReplace.innerHTML = '<i class="fa-fa-compress"></i>'; <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> But it didn't work. Is there a solution? Thanks…

VIEW QUESTION

Fontawesome icons aren't showing up – Html

I am trying to use fontawesome 5 icons. My kit is from 4 so I'm not sure if thats the issue. any help? <!DOCTYPE html> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="chasebiscamp.css"> <script src="https://kit.fontawesome.com/68e7b84e8d.js" crossorigin="anonymous"></script> <title>CB</title> </head> <body> <nav>…

VIEW QUESTION
Back To Top
Search