How to continue form submission after an AJAX call?

后端 未结 4 376
陌清茗
陌清茗 2021-01-14 11:08

I want to validate user entries on a WordPress post upon hitting the submit button, display an error message is there are problems, and submit the form if everything is OK.

4条回答
  •  太阳男子
    2021-01-14 12:02

    Bind your button to a validation function instead of submit. If it passes validation, call submit().

提交回复
热议问题