I have a javascript function that I am trying to get to update a label.
If I replace the label with a textbox it works fine, but with the label nothing happens!
An example of a label:
<label id="163" name="163">Some text.</label>
javascript code:
$("#163").val("meep");
The
valmethod sets the value of an input element. It will have no effect on other elements, including<label>You need to call the
textmethod, which sets the text of any element.For example: