skip to Main Content

jQuery Toggle old and new html value

How to toggle between the old and new html value in jQuery? html <span id="Password">••••••••••</span> <i class="fa-regular fa-eye passw"></i> jQuery $(".passw").click(function(){ var passw = "12345678"; //$("#Password").toggle.html(passw); $("#Password").html.toggle(passw); });

VIEW QUESTION
Back To Top
Search