1、取 input 的 value 值
$("#idName").val(); //根据id
$(".className").val(); //根据class
document.getElementById("idName").value; //根据id
2、取标签的内容(span、lable、div、select)
$("#idName").html(); //根据id
$(".className").html(); //根据class
document.getElementById("idName").innerHTML; //根据id
document.getElementById("selectId").value; //根据selectId
3、动态添加和移除disabled属性
$('#uid').attr("disabled",true); //添加
$('#uid').attr("disabled","disabled") //添加
$('#uid').attr("disabled",false); //移除
$('#uid').removeAttr("disabled"); //移除
document.getElementById("uid").disabled = "";
4、JS动态显示和隐藏style
document.getElementById("uid").disabled="true"; //禁用(readonly也适用)
document.getElementById("uid").disabled="false";//去除禁用
document.getElementById("uid").style.display="block"; //显示
document.getElementById("uid").style.display="none";//隐藏
5、子界面获取父界面元素内容(span、lable、div)
$(window.parent.document).find("#IdName").text();
window.parent.document.getElementById("currentPage").innerHTML;
6、子界面获取父界面元素内容(input)
$(window.parent.document).find("#IdName").val();
window.parent.document.getElementById("currentPage").value ;