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);
}
});
}

posted on 2018-08-13 17:36  小甜瓜安东泥  阅读(5283)  评论(0编辑  收藏  举报