Get the App
SLTechnology News&Howtos  ›  Development  › 

How can jQuery implement only one of the two columns of CheckBox in table

Shulou Source: shulou.com Published: 2022-06-01 02:19:20 10月02日 Update

Today, I would like to share with you how jQuery can only choose one of the two columns of CheckBox in table, with detailed content and clear logic. I believe most people still know too much about this knowledge, so share this article for your reference. I hope you can get something after reading this article. Let's take a look at it.

/ / html

Option one, option two, name Xiao Hong Xiaoming

/ / jQuery

(function () {$("# unit tr") .click (function () {$(this). Siblings (). Find ("input [type = 'checkbox']"). RemoveAttr ("checked");}) above is "how jQuery realizes that only one of the two columns of CheckBox in table can be selected". Thank you for reading all of this article! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.

Tags: Knowledge articles content different very big most names that is more knowledge points industries information channels logic noodles channels Xiaoming Xiao Hong Tiandu reference Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Shulou Tech Info MySQL Docker NVidia