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

Populating JsTree with JSON variable – Jquery ajax

I've been trying the whole day to get this thing working but somehow JsTree doesn't want to render my JSON data. Here is the example JSON object: {"parent":null, "ProductOption":null, "data":"HlaHd", "text":"global", "DelegationScope":0, "children":null, "entityId":1} I get the JSON object through…

VIEW QUESTION
Back To Top
Search