Home > Web Front-end > JS Tutorial > jquery 多个对象绑定同一个事件

jquery 多个对象绑定同一个事件

WBOY
Release: 2016-06-01 09:54:56
Original
1275 people have browsed it

代码如下:
 

<code>$("#code-shared,#other-code-shared").change(function() {
               //处理过程
});</code>
Copy after login

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