当input 状态为disabled后post 后获取不到输入框的问题处理

1.用js/jquery在提交前去掉disabled

$("form").submit(function){

  $("input").each(function(){

    $(this).removeAttr("disabled");

  });

});

2.使用readonly:checkbox不支持,注意有几个不支持的

3.使用hidden,隐藏传送

posted @ 2011-07-16 10:44  半日闲  阅读(823)  评论(0编辑  收藏  举报