How can jQuery implement only one of the two columns of CheckBox in table
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.