📅  最后修改于: 2022-03-11 15:03:34.093000             🧑  作者: Mango
// How to target a checkbox with jquery
var checkboxElement = $('input:checkbox');
var checkboxInAFruityDiv = $('div.fruit input:checkbox');
var checkboxWithFruityClass = $('input:checkbox.fruit');