基础

jQuery获取select 选中的option的属性值
$("#select").find("option:selected")

jQuery获取ul下的第一个li元素
$("ul li:first-child").addClass("aaa");

jQuery全选和反选

$(document).on("click","input[name='order-select-all']",function(e){
    $("input[name='routeOrder']").prop("checked",$(this).is(":checked"));
})

jQuery获取所有被选中的CheckBox

$("input[name='aaaa']:checked").each(function(){
    $(this).attr();
})

你可能感兴趣的:(基础)