JavaScript Tutorials

Latest

 thumbnail

jQuery: How to Toggle Class Names

January 26, 2021

To toggle one or more classes with jQuery, use the toggleClass() method. Let's create a button and a jQuery click functi...

 thumbnail

How to Check If a Value Exists in an Array in JavaScript

January 22, 2021

To check if a particular value exists in an array in JavaScript we can use the built-in indexOf() and includes() methods...

 thumbnail

How to Change Image Source with Pure JavaScript or jQuery

January 15, 2021

In this tutorial, we will learn how to set a new value for the src attribute on an img element in HTML using pure JavaSc...

 thumbnail

How to Reset a Form Using JavaScript or jQuery

January 13, 2021

In this tutorial, we will learn how to reset a form using pure JavaScript and jQuery. Using Pure JavaScriptTo reset...

 thumbnail

How to Check if an Element is Visible or Hidden with JavaScript

January 12, 2021

In this tutorial, we will learn how to check if an HTML element is visible or hidden using pure JavaScript and jQuery.&n...

 thumbnail

Check if Homepage JavaScript

October 10, 2020