Add Remove, Toggle or Replace Class of an Element in JavaScript
Almost all website projects that we work on require us to change the classes of different HTML elements at one...
Almost all website projects that we work on require us to change the classes of different HTML elements at one...
monty
JavaScript has a lot of useful methods that you can use to manipulate strings. For example, there is a String.replace()...
monty
There are a lot of situations in which you might want to delete or remove a given element from an...
Nitish
There are many situations where you might want to redirect users to a different page based on some action they...
Nitish
In one of my previous posts, I mentioned different ways to remove or delete a specific element from an array...
Nitish
Every now and then you will want to get the full URL of current page in a project you are...
Nitish
As a developer, every now and then, you will need to get the current timestamp in JavaScript. It allows us...
Nitish
There are a lot of scenarios where you might want to get the current date and time in JavaScript. For...
Nitish
Let’s say you have a string and you want to check if it contains a specific word, character or substring....
Nitish
Using JavaScript or jQuery to check if an element is hidden or not sounds very simple. However, there are lot...
Nitish