How to find the submit button in a specific form in jQuery

后端 未结 7 2365
执念已碎
执念已碎 2020-12-25 09:37

I try to get jQuery object of a submit button in a specific form (there are several forms on the same page).

I managed to get the form element itself. It looks somet

7条回答
  •  半阙折子戏
    2020-12-25 10:21

    BTW: Last selector looks weird. It selects each curSubmit(hm?) in every input[type=submit] tag. May be you mean var curSubmit = $("input[type=submit]", curForm);

提交回复
热议问题