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

How to add new plugin like Autocomplete in CK classic editor 5 used in ASP .net core mvc? – Jquery

Here I integrate classic CK-Editor in View of C# file.I am trying to add new autocomplete plugin in classic editor. <div class="card-body areacls cardBox" contenteditable="true" id="@areaId" data-href="@item.Id" onclick="createEditor(@areaId)"> @Html.Raw(item.Description) </div> <script> var editors = new Map(); function createEditor(elementToReplace) { return…

VIEW QUESTION
Back To Top
Search