jQuery modal window removes elements from my form

前端 未结 6 1953
隐瞒了意图╮
隐瞒了意图╮ 2021-02-08 14:00

jQuery, when i use it to create a modal window which contains form elemets, it takes out those elements when i submit the form.

example of the form:

<         


        
6条回答
  •  攒了一身酷
    2021-02-08 14:21

    From http://blog.coreycoogan.com/2010/12/01/jquerys-dialog-and-form-problems/

    Tie it to the form by doing $("mydialog").parent().appendTo($("form:first")).

    Note that you have to this call after you already called $("mydialog").dialog()

提交回复
热议问题