当前位置:网站首页>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
边栏推荐
- 編碼電機PID調試(速度環|比特置環|跟隨)
- EasyUI's combobox implements three-level query
- Charles uses three ways to modify requests and responses
- Use of slice grammar sugar in C #
- 《C语言程序设计》(谭浩强第五版) 第9章 用户自己建立数据类型 习题解析与答案
- 2022 Shandong Province safety officer C certificate work certificate question bank and online simulation examination
- IDEA查看历史记录【文件历史和项目历史】
- 场景题:A系统如何使用B系统的页面
- 《C语言程序设计》(谭浩强第五版) 第8章 善于利用指针 习题解析与答案
- C语言实现通讯录----(静态版本)
猜你喜欢

Data mining series (3)_ Data mining plug-in for Excel_ Estimation analysis

New ORM framework -- Introduction to beetlsql

Log4net is in Net core usage

Impact of AOT and single file release on program performance

TCP three handshakes and four waves

全新的ORM框架——BeetlSQL介绍

Knowledge of software testing~

Fight leetcode again (290. Word law)

Blazor University (12) - component lifecycle
![[Mysql] LEFT函數 | RIGHT函數](/img/26/82e0f2280de011636c26931a74e749.png)
[Mysql] LEFT函數 | RIGHT函數
随机推荐
Idempotency practice operation, explaining idempotency based on business
js递归树结构计算每个节点的叶子节点的数量并且输出
[authentication / authorization] customize an authentication handler
Miniapi of. Net7 (special section): NET7 Preview3
《C语言程序设计》(谭浩强第五版) 第9章 用户自己建立数据类型 习题解析与答案
C syntax sugar empty merge operator [?] And null merge assignment operator [? =]
Huawei mobile ADB devices connection device is empty
Aspnetcore configuration multi environment log4net configuration file
svg标签中利用<polygon/>循环数组绘制多边形
Top 9 task management system in 2022
C introduction of variable parameter params
2022g2 boiler stoker examination question bank and online simulation examination
Web Course Design - his system
Node configuration environment CMD does not take effect
可以接收多种数据类型参数——可变参数
. NETCORE sets the API post mode, which can accept parameters directly in parentheses
[Mysql] LEFT函数 | RIGHT函数
A set of combination boxing to create an idea eye protection scheme
Quartz. Www. 18fu Used in net core
《C语言程序设计》(谭浩强第五版) 第8章 善于利用指针 习题解析与答案