An event is something that happens to an HTML element. Events can be initiated by the browser itself or a user interacti...

Read

In this tutorial, we will learn how to make comments in your HTML code. Comments in HTML allow you to leave notes for yo...

Read

Sublime Text 3 has two built-in find and replace functions, one for searching in a single file and another for searching...

Read

To listen for an event on any HTML DOM element in JavaScript, use the addEventListener() method. The addEventListen...

Read

To get the first element containing a class with jQuery, use the :first pseudo selector after the class name. To de...

Read

jQuery uses the same selectors as CSS for getting elements with class names and ID. A . (dot) represents a class and a #...

Read

To disable a form element with jQuery, use the prop() method and pass "disabled" as the first argument and true as the s...

Read

In this tutorial, we will learn how to check if an HTML element exists using pure JavaScript and jQuery. With Pure...

Read

In this tutorial, we will learn how to get the value and text of the selected option with jQuery. Get the Value of...

Read

It is not safe to begin manipulating an HTML document until it has fully loaded. To only run a function once everything...

Read

To close multiple panes in Sublime Text 3 use the following key combination : OPT + CMD + 1 of macOs and on Windows/Linu...

Read

To remove a class name with jQuery, use the removeClass() method, passing the name of the class to remove as the first a...

Read

To do something when an element is hovered over, use the jQuery hover() method and pass a function as the first argument...

Read

In this tutorial, we will learn how to get the closest HTML element relative to another in a variety of different ways u...

Read

To replace new line characters in a textarea with spaces we can use JavaScript and RegEx. Let's create a textarea e...

Read

In this tutorial, we will learn how to load a list of options in a JSON file and add them to a select dropdown. This met...

Read

To read a JSON file with jQuery, use the getJSON() method. Let's have a look at the syntax of this method before writing...

Read

To look for a change in a value and call a function with jQuery, use the change() method and pass the function to use as...

Read

To access a button click with jQuery use the click() method and pass the function to handle the event as the first argum...

Read

In this tutorial, we will learn how to get children of an element in different ways using pure JavaScript and jQuery.&nb...

Read

In this tutorial, we will learn how to remove an HTML element from a page using pure JavaScript and jQuery. Remove...

Read

To disable a button with jQuery, add a disabled attribute to it with the prop() method. To demonstrate this, let's...

Read

In this tutorial, we will learn how to add attributes to elements, modify and remove them with jQuery. Add an Attri...

Read

Latest

 thumbnail

JavaScript Events

February 26, 2021

An event is something that happens to an HTML element. Events can be initiated by the browser itself or a user interacti...

 thumbnail

How to Comment in HTML

February 25, 2021
 thumbnail

jQuery: Select First Element with Class

February 13, 2021

To get the first element containing a class with jQuery, use the :first pseudo selector after the class name. To de...

 thumbnail

Select an Element by Class or ID with jQuery

February 11, 2021

jQuery uses the same selectors as CSS for getting elements with class names and ID. A . (dot) represents a class and a #...

 thumbnail

How to Disable/Enable Form Elements with jQuery

February 11, 2021

To disable a form element with jQuery, use the prop() method and pass "disabled" as the first argument and true as the s...

 thumbnail

Check if an Element Exists with Pure JavaScript and jQuery

February 11, 2021

In this tutorial, we will learn how to check if an HTML element exists using pure JavaScript and jQuery. With Pure...

 thumbnail

jQuery Document Ready Function

February 10, 2021
 thumbnail

jQuery Remove Class

February 09, 2021
 thumbnail

jQuery on Change Function

January 28, 2021