1、^前置匹配
$('div[id^=DivError_]')
2、取name属性
var v = $("input[name='radion']:checked").val()
3、select 标签遍历
$("#selectName option").each(function () {}); $("#selectName option:selected")选中项
4、添加移除checked
![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
$(this).attr("checked", "checked"); $(this).removeAttr("checked"); $(this).attr({"checked", "checked"});