HTML Attributes. I am sharing two different examples here in this post showing how to change the text of a label on button click using JavaScript or jQuery. The width of the labels. In the case of