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.
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.
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.