Home > Web Front-end > JS Tutorial > body text

Simulate user operation on the Input element and the corresponding event will not be triggered_form special effects

WBOY
Release: 2016-05-16 19:13:34
Original
1106 people have browsed it

A general rule for input elements in Javascript is that only user operations will trigger the corresponding events of various elements of the input class. Instead, use the corresponding methods of javascript to simulate user operations, and the corresponding events will not be triggered.

For example, for the following form:





When the user calls the click() method of b0 to simulate When the user clicks button 0, the button's onClick event will not be triggered, so the corresponding event handler will not be executed. Only when the user actually clicks the button will the event be triggered and the event handler function executed.

Another: When a set of data of input elements with the same name is submitted to the server, the data format is: name=value, value,...

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