This example shows two text boxes, one single-line and the other multi-line, and a button. When the button is clicked, an alert box will appear showing the contents of each text box.
You can also enter some content in the two text boxes and click the button.
Because the value attribute is a string, you can use any string attributes and methods. For example, you can use the length attribute to get the length of the text in the text box:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn