skip to Main Content

How to display loader image in javascript – Jquery

Hello everyone I am working with javascript, Right now i want to display "loader-image" after click on button, so how can i do this ? Here is my image url https://xxxxxxxxx/wp-content/uploads/2023/04/Loading_icon.gif And here is my current code jQuery('#double_click_submit').click(function(event) { //want…

VIEW QUESTION

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
Back To Top
Search