Get the difference between values in textarea with value and innerHTML

Source: Internet
Author: User

Today, when you're doing a little text-moving thing, you find some features:

1, in addition to the form element, the other tags in the browser page is not writable.

2.

TextArea uses value to get the value in the current textarea and innerHTML gets the value from the beginning of the page, gets the tested discovery from the document, and when we modify the value in textarea on the page displayed by our browser, In fact, the contents of the document are still unchanged (by reviewing the elements to see the contents of the textarea) and innerHTML get the contents of the document when I change the value in the textarea on the page, there is no change in the document, And value gets the values that are displayed in the page.

Get the difference between values in textarea with value and innerHTML

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.