//span赋值
$(‘#state1‘).text("审核通过");
//textarea赋值
$("#memo").val(‘‘);
//隐藏域
$("#id").val(row.id);
//textbox赋值和取值
$("#county").textbox(‘setValue‘,result.serviceCity.countyid)
$("#county").textbox(‘getValue‘);
//获取URL
js中的get取值
function getUrlParam(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
var r = window.location.search.substr(1).match(reg);
if (r != null) return unescape(r[2]); return null;
}
原文:http://www.cnblogs.com/cuijinlong/p/6230098.html