JavaScript not being called in inline event handler

后端 未结 4 932
逝去的感伤
逝去的感伤 2020-12-21 16:10

Here is my JavaScript:



        
4条回答
  •  Happy的楠姐
    2020-12-21 17:03

    Function "uploadForm" is invisible by DOM, because function "uploadForm" is defined in another function. In your code , another function means : $(document).ready(function(){...}).

    In jQuery, you can bind event like this:

    HTML:

    ....

    JS:

    
    

提交回复
热议问题