JS to set or get the value of the selection:
①innerhtml: Property Sets or returns the HTML within the tag. That is, the entire contents of the object from its starting position to the terminating position, including the HTML tag.
②outerhtml: Property Sets or returns the HTML within the label and tag. That is, the entire contents of the object from the beginning of the tag to the terminating position, including the HTML tag.
If you want to output content that does not contain HTML tags, you can use innerHTML to get content that contains HTML tags, and then use regular expressions to remove HTML tags.
③innetext: The content from the starting position to the terminating position, but it removes the HTML tag. (can only be used under IE and chrome)
④outertext settings (including labels) or get (excluding tags) the text of an object <br><br>
⑤value: property to set or return the default value for the password field. Get the value of a text box
JS in innerHTML, outerHTML, InnerText, outertext, value of the difference and contact?