In jQuery, val and atrr (value) are different for browsers. If val () is assigned with a default value, when this value is modified, google cannot obtain the latest value. However, when ie can be used as a project, the data I pass from the background is assigned a value to a text box. In the google browser,
No modification was found during the modification, and the reason was finally checked. It turns out that val and atrr ("value" in jQuery are different from those in browsers,
The summary is as follows:
In jquery, val () and atrr ('value' are used. If there is a default value, if val () is used to assign a value, when this value is modified, google cannot obtain the latest value, but ie can,
For atrr ('value', if there is a default value, ie and google can get the latest changes when it is worthwhile to change this value. Currently, tests are conducted on ie and google, and tests are not performed on other browsers. Haha