【发布时间】:2010-11-25 09:02:28
【问题描述】:
这就是帖子的样子,我在“区域”div 中“打印”返回数据,因为该数据是一个隐藏的表单变量 input type='hidden' id='pc1' value=' wh5',是否有可能获得 id 'pc1' 的值?,我现在得到 'undefined'。你使用live还是bind?我看过这些,但它们似乎是针对点击事件的。
$("#chk").click(function(){$.post("includes/mainform_new.php",{
postcode:$("#postc").val()
},
function(data){
$("#area").html(data); <--- the input element pc1 is in the returned data
alert($("#pc1").val()); <--- returns undefined
});
});
【问题讨论】: