I have an element <span id="userName.errors" class="errors">Enter Your User Name </span> i would like to use jquery to remove the text 'Enter Your User Name ' or any element that belongs to the class 'errors'
Use the text method:
$(".errors").text("New text here");
This targets all elements with the class "errors".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With