Skip to content

Tag Archives: jQuery-Selectors

In this article, we will learn how to loop through input elements and display their current values in jQuery. This can be done using two… Read More
In this article, we will learn to find all links with a hreflang attribute. The hreflang is an attribute that tells search engines the relationship… Read More
In this article, we will select the direct parent element of an element using jQuery. To select the direct parent element, the parent() method is… Read More
jQuery is a small and fast JavaScript library with a motto: “Write Less And Do More“. To use JQuery you can either download the jquery… Read More
In this article, we will learn to find input with an attribute name starting with a specific letter or text. This task is implemented using… Read More
In this article, we will select all the ancestor elements of an element in jQuery. To select all ancestor elements of an element, the parents()… Read More
In this article, we will select specific ancestor elements of an element in jQuery. To select the specific ancestor elements of an element, we use… Read More
In this article, we will find the width and height of an element in jQuery. To find the width and height of an element, width()… Read More
jQuery selectors are used to selecting the HTML element(s) and allow you to manipulate the HTML element(s) in a way we want. It selects the… Read More
In this article, we will discuss on how to use jQuery to search and replace HTML elements. Just like in Vanilla JavaScript (pure JavaScript), jQuery… Read More
The changes to the html/text of a div can be detected using jQuery on() method. The on() is used to attach one or more event… Read More
The select() event is applied to an element using jQuery when the user makes a text selection inside an element or on focus the element.… Read More
The focusout() method in jQuery is used to remove the focus from the selected element. Now we will use focusout() method to validate the input… Read More
Given an HTML document and the task is to select the elements with different ID’s at the same time using JQuery. Approach: Select the ID’s… Read More
Given a list of elements and the task is to not select a particular class using JQuery. jQuery :not() Selector: This selector selects all elements… Read More