jq根据属性名来取值

var p = $("input[name='bui-deptselect-step']:checked").val();    
原文地址:https://www.cnblogs.com/chchchc/p/12590160.html