jQuery modal window removes elements from my form

前端 未结 6 1964
隐瞒了意图╮
隐瞒了意图╮ 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:34

    As seen in the answer for this question, jQuery dialog has a field appendTo, that can be used to configure where to put your dialog (div-wise) on initialization.

    This seems to be the least ninja-workaround version to tackle the problem.

提交回复
热议问题