Posts in JavaScript


Show and Hide Password Field with jQuery and JavaScript

Posted on 17th Mar 2018 00:21:40 in

In this tutorial, we will see how to show and hide password field with jQuery and JavaScript. This tutorial demonstrates the functionality of how to toggle password input field visibility. You have seen in many sites, password visibility option means you can see password while you are writing.This example will help you to understand how to make password visible when you are writing. First we check for current input..

[Read more...]

Live Character Count Using JavaScript

Posted on 6th Mar 2018 23:03:01 in

In this tutorial, we are going to see how to count character live using JavaScript. In previous tutorial we have discussed about how to live preview using jquery. Getting string length using .length property. Length property return length of a string. The innerHTML property is used to set the HTML content of an element.

[Read more...]

JavaScript Validation Using Sample Form

Posted on 3rd Mar 2018 13:54:57 in

Validating a form using client side JavaScript is a used to validate user input fields of form. It is implemented to prevent leaving blank input fields or enter invalid characters in input box . In html 5 , validating input fields become easy due some updation. In input box when we use “required ” attribute ,then a user can left it empty. For email input box just....

[Read more...]

Display Loading Image While Page Loads Using jQuery and CSS

Posted on 7th Feb 2018 22:26:31 in

When we build web applications then web page takes time to load and if there is lots of image ,jquery script and css then it takes more time to load. Mostly website users close webpage when it takes more time to load,in such type of a case we try to optimize web pages to maintain speed. It is great idea to display loading image on page loads, I think it will give good experience to website users.

[Read more...]

How to Get Selected Radio Button Value in jQuery

Posted on 7th Feb 2018 22:24:34 in

In this tutorial we are going to see how to get selected or checked radio button value in jQuery. Here we will use :checked selector with val() to get selected radio button value from a group of radio buttons. It is very easy to get selected value using jquery. jQuery selectors are used to select HTML elements and perform actions on it. The following example will help you to understand how to get selected radio button value in jQuery.

[Read more...]

Phone Number Validation Using jQuery

Posted on 7th Feb 2018 22:19:48 in

Validation of a phone number is required when we validate an HTML form.In this tutorial we will see how to validate a phone number using jQuery. Now a day phone number became a mandatory field in registration form and we must validate it before submit. Firstly we check for non empty and for 10 digit numeric value. On validation failed, we append specific error message to main div so that user can get what is wrong while submitting the form.

[Read more...]

Stay Connected
Like Us on Facebook