jQuery - how to submit a `post` `multipart/form-data` from a form and get your function called?

后端 未结 1 1155
情深已故
情深已故 2021-01-21 07:30

So currently I have a form like this:

            
相关标签:
1条回答
  • 2021-01-21 07:50

    Maybe you can use the jQuery Form Plugin. The code will be something like it:

    <script type="text/javascript"> 
        $(document).ready(function() { 
            $('#form_upload').ajaxForm(function() { 
                alert("Thank you for your upload!"); 
            }); 
        }); 
    </script> 
    
    0 讨论(0)
提交回复
热议问题