jquery - How to change link href by link text -
I have a text where I want to swap the login link, but only if the text says "log in". Occasionally say "my account":
& lt; Div id = "login_T4304F19B025" & gt; & Lt; A href = "/ login1" & gt; Sign in & lt; / A & gt; & Lt; / Div & gt; How do I use to change href to / login2 if link text is "logged in"?
Comments
Post a Comment