skip to Main Content

JQuery accordion not working in Razor page

I've spent a few hours digging through here and other sites and can't find the answer. I'm trying to implement a simple accordion in a razor page, but no matter what I try it doesn't work. _Layout.cshtml: <link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">…

VIEW QUESTION

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