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

Amount Field Validation Using JavaScript

When we work on any financial web application,we must use input field for amount value. Amount is very important field in any form so it must be validate before submit. This tutorial will help you  to understand how to validate amount field using JavaScript. HTML <input type=”text” name=”amount” id=”field” onfocusout=”checkAmount();”> JavaScript <script> function checkAmount() { … Read more

PHP Form Validation

PHP Form Validation

In this article we are going to see how to validate a HTML form using PHP. We have already written about how to validate form using jQuery. Server side form validation is used for additional security with client side validation. In this tutorial we will see how to use the HTML contact form on the … Read more