Changing label content using Javascript -
is possible change label content using javascript?
<label>how it?</label> <input type="button" value="change label"/>
give label id , change this:
<label id='label-id'>how it?</label> <input type="button" value="change label" onclick="document.getelementbyid('label-id').innerhtml = 'like this!';"/>
(forgive inline event handler. :-) )
working demo here: http://jsfiddle.net/bd349/
Comments
Post a Comment