Changing the label text seems simple :
var label = ...; label.innerHTML = "...";
or using jQuery:
var label = ...; $(label).text("...");
None of the above actions work correctly if the label wraps the <input/> element:
<label><input type="checkbox">Text</label>
- in this case, the <input/> element is replaced with the old text.
How to change only label text without affecting its children?
source share