Home > Web Front-end > JS Tutorial > Detailed analysis of the difference between refresh of form elements and non-form elements_Basic knowledge

Detailed analysis of the difference between refresh of form elements and non-form elements_Basic knowledge

WBOY
Release: 2016-05-16 17:17:08
Original
1223 people have browsed it

1. If the form element is refreshed with js assignment, the record will be the value after js assignment instead of the initial value


< script type="text/javascript">
function bb(){
var aa=document.getElementById_x("aa");
aa.value="3";
}







2. If non-form elements are refreshed with js assignment, the initial value is recorded





wwww


Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template