jQuery Validation for File Input Type

jQuery Validation for File Input Type

When we use input type file in HTML form, then we must validate it before form submitted. Client side validation can be easily done using jQuery or JavaScript. In this tutorial, we will see how to validate input type file with jQuery. HTML <div class=”form-group”> <input type=”file” class=”form-control” id=”idaddproof3″ name=”idaddproof” accept=”image/*” required=”required”> <span class=”errorMSG” id=”msgaadhaarfile”></span> … Read more

Ajax Image Upload With jQuery and PHP

Ajax image upload with jQuery and PHP

In this tutorial, we will see how to upload file/image and get a preview without refresh the page using ajax with jQuery and PHP. We have already seen image/file upload snippet with PHP in the previous tutorial. In this tutorial, we submit forms using jQuery and ajax. Form data sent to PHP code where image … Read more

Upload multiple images with Jquery and PHP

In previous tutorial I have posted an article about how to upload a file in PHP. In this article I am going to discuss about how to upload multiple image with few lines of code in php using jquery. In jQuery we are adding a script for dynamic select option of multiple images. It is … Read more