How to clear text in element by jQuery?
Current I using jQuery append()
method to add in text in html element.
The code fragment as below:
$(".email-address td:nth-child(1)").append("Hello");
How can I clear the text I a开发者_如何学JAVAppend previously?
Thank you in advanced.
Use $("selector").text("Hello")
instead
精彩评论