Why is a function declared in document.ready() not defined when called?

后端 未结 5 1952
逝去的感伤
逝去的感伤 2021-01-15 17:52

Here is my HTML/JavaScript:



        
5条回答
  •  一个人的身影
    2021-01-15 18:33

    What I ended up doing - what I should have done in the first place - is adding a click handler for the submit button:

    $("input[name='submitButton']").click(function(){...});
    

提交回复
热议问题