当前位置:网站首页>Radio boxes are mutually exclusive and can be deselected at the same time
Radio boxes are mutually exclusive and can be deselected at the same time
2022-06-26 01:09:00 【Jennifer33K】
Radio boxes are mutually exclusive and can be unchecked at the same time
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script src="/js/js/jquery.min.js"></script>
</head>
<body>
<div id="box2" class="box"> New energy vehicle or not :
<input type="radio" id="isNewEngery" name="isNewEngery" > yes
<input type="radio" id="notNewEngery" name="isNewEngery"> no
<!-- <input type="checkbox" id="isNewEngery" name="isNewEngery"> yes -->
<!-- <input type="checkbox" id="notNewEngery" name="notNewEngery"> no -->
</div>
<script>
$(document).ready(function () {
$(':radio').click(function () {
var r = $(this).attr("name");
$(":radio[name=" + r + "]:not(:checked)").attr("tag", 0);
if ($(this).attr("tag") == 1) {
$(this).prop('checked',false);
$(this).attr("tag", 0);
}else {
$(this).attr("tag",1);
}
});
});
</script>
</body>
</html>
边栏推荐
- The maze of God's perspective in robot vision
- 随便画画的
- Daily question: the difference between threads and processes
- MOS管防倒灌电路设计及其过程分析
- About EF page turning query database
- Web学习之TypeScript
- Implementation notes of least square fitting conic in stm32
- 计算机网络知识总结(面试)
- 智慧家——全家具功能
- How product managers control the progress of product development
猜你喜欢

计算机网络知识总结(面试)

Analyze the five root causes of product development failure

Typescript for Web Learning

vite打包构建时 @charset utf-8警告问题处理;

jarvisoj_ level2_ x64

Establish a j-link GDB cross debugging environment for Px4
![Chapter V exercises (124, 678, 15, 19, 22) [microcomputer principles] [exercises]](/img/16/d67f38d32af6904a7d0be9f2e5be70.png)
Chapter V exercises (124, 678, 15, 19, 22) [microcomputer principles] [exercises]

数字电路——加法器

新库上线 | CnOpenData中国新房信息数据

Freertos+stm32l+esp8266+mqtt protocol transmits temperature and humidity data to Tencent cloud IOT platform
随机推荐
单选框互斥且可同时取消选中
继承--圣杯模式
Typescript for Web Learning
Chapter V exercises (124, 678, 15, 19, 22) [microcomputer principles] [exercises]
Simple deepclone
sqlserver 区分字符串中字母大小写
Login interceptor
debezium
ADC acquisition noise and comparison between RMS filter and Kalman filter
mysql错误代码2003的解决办法
【系统架构】-什么是MDA架构、ADL、DSSA
Web學習之TypeScript
C#另外一个new类的方式Ico?以及App.config的使用
C IO stream (II) extension class_ Packer
.net使用Access 2010数据库
[learn FPGA programming from scratch -44]: vision chapter - integrated circuit helps high-quality development in the digital era -1- main forms of integrated circuit chips
C another new class is ICO? And app Use of config
新库上线 | CnOpenData中国新房信息数据
[system architecture] - what are MDA architecture, ADL and DSSA
ETCD数据库源码分析——集群通信初始化