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

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -