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
In this tutorial, you will learn how to detect credit card type in javascript. If you have ever made a purchase online, then you know there is always a requirement for a credit card to make a payment. Most of the websites use third-party services to handle the payment such as Stripe, Paypal, etc. As
In this tutorial, you will learn how to check if passwords match in javascript. You only need such a mechanism when a user is about to sign up on your website or about to change the password. It is a common convention to verify if the password entered by the user is actually the one
In this tutorial, you will learn how to close tab or window created using javascript. As you already know, in almost every browser, you can open as many tabs or windows as you want, and depending upon the browser and kind of website you are visiting, your CPU and RAM usage will increase. You can
In this tutorial, you will learn how to change selected text background color in CSS. Whenever you select a text in your browser to copy or just for highlighting purpose, you must have noticed that it always gives you default blue color in the background. To change this color, you can make use of