jquery获得/修改html标签

1.添加 meta
$("head").append('<meta http-equiv="content-type" content="text/html;charset=gbk" />');
修改 meta
$("meta[http-equiv='content-type']").attr('content',"text/html;charset=utf-8");

用js 处理 meta 实际无任何意义,因为dom文档一加载就读取了 meta 信息!

2.判断CheckBox是否选中
$("#txtAgree").is(":checked"); true/false
原文地址:https://www.cnblogs.com/xsj1989/p/5333635.html