I have the following div and want to change the text that says "Don't have an account?" to something else.
I've tried $('a#createAccount').text'some text)
or .html('some text');
Same with $('.create p')
, but it removes the <a>
.
<div class="create">
<p>
Don't have an account?<a id="createAccount" tabindex="1" href="https://somewebsite.com">Sign up now</a>
</p>
</div>
change only the text leaving the <a>
unchanged