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

Detect Internet Connection with JavaScript

Detect Internet Connection with JavaScript

Sometime, it becomes necessary to know about status of internet connectivity. We can know about internet connectivity in PHP also, but it is not good practice. Using client side language to detect internet connectivity is good practice because it gives connection status without reloading a page. So, using browsers property (navigate.online) we can easily confirm … Read more

How To Get Selected Text and Value of DropDownList Using JavaScript and jQuery

In this tutorial,we will learn how to get selected text and value of dropdown list by onchange event using jQuery and JavaScript. When user select dropdown text , then text and value is retrieved with jquery onchange event. A simple function is created to get dropdown text and value using JavaScript. So. let us see … Read more

Show and Hide Password Field with jQuery and JavaScript

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 … Read more

Live Character Count Using JavaScript

Live Character Count Using JavaScript

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.  Live Demo  [sociallocker] Download[/sociallocker] JavaScript code <script> … Read more

JavaScript Validation Using Sample Form

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 … Read more