当前位置:网站首页>JS, bind the event for a label with input, and then bind the stand-alone event in the parent element. The event is executed twice and solved
JS, bind the event for a label with input, and then bind the stand-alone event in the parent element. The event is executed twice and solved
2022-04-23 03:18:00 【JavaTestZhangy】
Change your mind , My is , Bind events to input above , solve the problem , And then use for Label pointing input Elements
<li class="option" >
<input type="radio" id="inputid"/>
<label for="inputid"> Click on label, And click inpu effect equally </label>
</li>
$('li.option input').click(function() {
alert(" It's only going to be executed once ")
});
版权声明
本文为[JavaTestZhangy]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230314477003.html
边栏推荐
- Configuration table and page information automatically generate curd operation page
- 2022年度Top9的任务管理系统
- EasyUI's combobox implements three-level query
- 《C语言程序设计》(谭浩强第五版) 第8章 善于利用指针 习题解析与答案
- Five tips for cross-border e-commerce in 2022
- New ORM framework -- Introduction to beetlsql
- 类似Jira的十大项目管理软件
- The most understandable life cycle of dependency injection
- Do you really understand hashcode and equals???
- [vs Code] solve the problem that the jupyter file displays exceptions in vs code
猜你喜欢

2022山东省安全员C证上岗证题库及在线模拟考试

How does Microsoft solve the problem of multiple PC programs
![General test technology [II] test method](/img/b7/f661f446616ad6bfbbf48eb03ea82d.png)
General test technology [II] test method

Xutils3 corrected a bug I reported. Happy

Maui initial experience: Cool

ASP. Net 6 middleware series - conditional Middleware
![[MySQL] left Function | Right Function](/img/26/82e0f2280de011636c26931a74e749.png)
[MySQL] left Function | Right Function

Ide-idea-problem

The most easy to understand dependency injection and control inversion

关于idea调试模式下启动特别慢的优化
随机推荐
First in the binary tree
数据库表中不建索引,在插入数据时,通过sql语句防止重复添加(转载)
Chapter 8 of C language programming (fifth edition of Tan Haoqiang) is good at using pointer exercises to analyze and answer
Mysql database
Experiment 5 components and event handling
Swap the left and right of each node in a binary tree
2022A特种设备相关管理(电梯)上岗证题库及模拟考试
編碼電機PID調試(速度環|比特置環|跟隨)
Xutils3 corrected a bug I reported. Happy
MySQL installation pit
Top ten project management software similar to JIRA
Data mining series (3)_ Data mining plug-in for Excel_ Estimation analysis
[authentication / authorization] customize an authentication handler
[MySQL] left Function | Right Function
IDEA查看历史记录【文件历史和项目历史】
Idempotency practice operation, explaining idempotency based on business
Chapter 9 of C language programming (fifth edition of Tan Haoqiang) analysis and answer of exercises for users to establish their own data types
Huawei mobile ADB devices connection device is empty
Experiment 6 input / output stream
幂等性实践操作,基于业务讲解幂等性