lijianda
属性为"disabled",提交表单时,select的值无法传递,移除disabled属性,
<input name="id" type="text" value="${topicInfo.id }" style="display:none">
controller取name值
          //属性为"disabled",提交表单时,select的值无法传递,移除disabled属性
                 $("#undertakerId").removeAttr("disabled");
                 $("#undertakeDepartmentId").removeAttr("disabled");
                 $("#form1").ajaxSubmit(
                        {
                            type : \'post\',
                            url : ctx + \'/organization/topic/editTopic?t=\' + Math.random(),
                            data : $(\'#form1\').serialize(),
                            dataType : \'json\',
                            success : function(data) {
                            },
                            error : function(data) {
                            }
                        }
                );

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-13
  • 2021-10-19
  • 2021-06-17
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-13
  • 2021-08-21
  • 2021-09-27
  • 2022-01-06
  • 2022-02-08
  • 2021-09-13
  • 2022-12-23
相关资源
相似解决方案