日期:2014-05-16 浏览次数:20478 次
$("#abc").append('<input type="hidden" name="yearp[]" value="'+year+'">'); 用Firebug调试,出现: <input type="hidden" aspirated="" naturally="" gas="" v8="" in.="" 472cu.="" value="7.7L" name="engine[]"> 正确的应该:value="7.7L 472Cu. In. V8 GAS Naturally Aspirated"
var iii = $('<input type="hidden" name="yearp[]" />'); iii.val(year); $("#abc").append(iii);