Form will not submit if .remove() is used?

前端 未结 4 1942
再見小時候
再見小時候 2021-01-18 04:36

I\'m having a spot of bother with either Firefox, jQuery or both. OS is Windows 7, Firefox is version 4.0.1 and jQuery is between 1.5 - 1.6.

Basically I have a form

4条回答
  •  半阙折子戏
    2021-01-18 04:58

    I have no idea why this is the case, but if you replace:

    with:

    and use $("input[name=test]") instead of $("button[name=test]") then it appears to work.

    You can see this working in this fiddle.

提交回复
热议问题