jquery如何获取type=hidden的input元素的值?
function setHiddenFields() {
var hiddens = $("input:hidden");
$.each(hiddens, function (index, e) {
for(var key in warningForm){
if(isEmptyStr(warningForm[key])){
warningForm[key] = "";//把null属性转成空字符
}
if(e.id == tranformStr(key)){
$(e).val(warningForm[key]);
}
}
if(e.id=="recordFeecbackId"){
$(e).val(dataObj.recordFeecbackId);
}
});
}
不积跬步无以至千里,不积小流无以成江海