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="/b3c3aa0d-d4db-459d-8bf6-ed1538d45256/B2C_1_sign_up_sign_in_persona...">Sign up now</a>
</p>
</div>
change only the text leaving the <a> unchanged