skip to Main Content

How to submit form without the page reloading – Jquery ajax

I have this form <form action="" method="post" enctype="multipart/form-data" onsubmit="submit()"> <input id="name" class="btn" type="file" name="pic" multiple> <br/><br/> <button class="btn btn-primary" type="submit" id="submit" name="submit">UPLOAD</button> </form> <br/><br/> Uploaded file: <a target="blank" href="<?php echo $fileurl;?>"><?php echo $fileurl;?></a> and I have this script <script> function…

VIEW QUESTION
Back To Top
Search