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

How To Redirect If JavaScript Is Disabled In A Browser

How To Redirect If JavaScript Is Disabled In A Browser

This tutorial will help you to understand how to redirect a web page when JavaScript is disabled in a browser. When we use JavaScript in web application, we must check for JavaScript is enabled in browser or not. Disabling JavaScript in a browser will remove web application validation and stop Ajax based actions. Redirect Page … Read more