//是否置顶
var information_stick = "";
if ($(".information_stick").is(":checked")) {
information_stick = "True";
}
else {
information_stick = "False";
}
前台代码:
<input name="form-field-checkbox" type="checkbox" class="ace information_stick" style="margin-top:-28px" checked /><span class="lbl" style="margin-top:0px;"> 是</span></label>
//AB版区
if ("<%=information_AB%>" == "True") {
$(".information_AB").attr("checked",true);
}
else
{
$(".information_AB").attr("checked", false);
}