当前位置:网站首页>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
边栏推荐
- 一文了解全面静态代码分析
- 批量下载文件----压缩后再下载
- Mysql database
- 《C语言程序设计》(谭浩强第五版) 第8章 善于利用指针 习题解析与答案
- A set of combination boxing to create an idea eye protection scheme
- Establishing and traversing binary tree
- 《C语言程序设计》(谭浩强第五版) 第7章 用函数实现模块化程序设计 习题解析与答案
- 关于idea调试模式下启动特别慢的优化
- Fundamentals of software testing and development
- 【VS Code】解决jupyter文件在vs code中显示异常的问题
猜你喜欢
MySQL port is occupied when building xampp
Xamarin effect Chapter 22 recording effect
svg标签中利用<polygon/>循环数组绘制多边形
[vs Code] solve the problem that the jupyter file displays exceptions in vs code
Top 9 task management system in 2022
Student achievement management
可以接收多種數據類型參數——可變參數
一文了解全面静态代码分析
Charles uses three ways to modify requests and responses
Huawei mobile ADB devices connection device is empty
随机推荐
[Mysql] LEFT函数 | RIGHT函数
A set of C interview questions about memory alignment. Many people make mistakes!
General testing technology [1] classification of testing
Mysql database
场景题:A系统如何使用B系统的页面
ASP. Net 6 middleware series - execution sequence
First in the binary tree
2022a special equipment related management (elevator) work license question bank and simulation examination
It can receive multiple data type parameters - variable parameters
Is it difficult to choose binary version control tools? After reading this article, you will find the answer
Explanation keyword of MySQL
socket編程 send()與 recv()函數詳解
Top ten project management software similar to JIRA
Yes Redis using distributed cache in NE6 webapi
Swap the left and right of each node in a binary tree
Ide-idea-problem
Five tips for cross-border e-commerce in 2022
Chapter 9 of C language programming (fifth edition of Tan Haoqiang) analysis and answer of exercises for users to establish their own data types
編碼電機PID調試(速度環|比特置環|跟隨)
Preview of converting doc and PDF to SWF file