Home >Web Front-end >JS Tutorial >js method of assigning values to label tags and div tags_javascript skills
In html, label does not have a value attribute.
Like div and most other html elements, it has innerText and innerHTML attributes.
cannot document.getElementByID("test").value="chenhuang";
It should be the following