Latest
jQuery: How to Toggle Class Names
January 26, 2021To toggle one or more classes with jQuery, use the toggleClass() method. Let's create a button and a jQuery click functi...
How to Get Array or String Length in JavaScript
January 24, 2021How to Set Text of an Element with JavaScript
January 23, 2021How to Get & Set the ID of an element with JavaScript and jQuery
January 23, 2021How to Check If a Value Exists in an Array in JavaScript
January 22, 2021To check if a particular value exists in an array in JavaScript we can use the built-in indexOf() and includes() methods...
How to Change Image Source with Pure JavaScript or jQuery
January 15, 2021In this tutorial, we will learn how to set a new value for the src attribute on an img element in HTML using pure JavaSc...
How to Reset a Form Using JavaScript or jQuery
January 13, 2021In this tutorial, we will learn how to reset a form using pure JavaScript and jQuery. Using Pure JavaScriptTo reset...
How to Check if an Element is Visible or Hidden with JavaScript
January 12, 2021In this tutorial, we will learn how to check if an HTML element is visible or hidden using pure JavaScript and jQuery.&n...