In this tutorial, you will learn how to toggle password visibility in javascript. It is a very basic and common pattern to provide your website visitors the ability to mask and unmask a password in the login or signup form. It is only done so that a visitor can make sure that the password entered
In this tutorial, you will learn how to validate date in javascript. If you have some sort of form on your website which has a date input field, then you surely want to validate the date first on the client-side before submitting it to the server. This is a very important and necessary step to
In this tutorial, you will learn how to check if input box is empty in javascript. As a web developer, it is our responsibility to make sure that all the mandatory fields are filled by the user before submitting the form. Submitting a form with blank fields can create inconsistency in our database. Form validation
In this tutorial, you will learn how to format number to currency in javascript. It is pretty common to display currency sign before or after the product price depending upon the country of your website visitors. Since each country follows a specific format for digits when it comes to price, so as a developer it
In this tutorial, you will learn how to create a table from an array of objects in javascript. Having a table with fixed values for heading, rows, and columns only requires the use of table, th, tr, and td tags. But what if you want to generate a table dynamically when you don’t have