Form submission causing 'Maximum call stack size exceeded'

前端 未结 1 2094
遇见更好的自我
遇见更好的自我 2020-12-14 04:26

I\'ve created a form that is used to review a person on a website, however when the form is submitted nothing happens and console is showing a \'Maximum Call Stack Exceeded\

相关标签:
1条回答
  • 2020-12-14 05:05

    Replace $('#fReviewMe').submit(); with:

    $('#fReviewMe')[0].submit();
    

    calling DOM node method submit to avoid submit jQuery handler 'loop'.

    0 讨论(0)
提交回复
热议问题