Skip to content

Tag Archives: jQuery-Misc

Given an HTML element and the task is to add and remove multiple classes from it using JQuery. Approach: First select the element to which… Read More
Given an element from DOM, The task is to find the n-th level parent of that element using JQuery. Below few of the methods are… Read More
The task is to detect the bottom of the <div> element when user scrolls to the bottom using JQuery. Here are few methods discussed. jQuery… Read More
Given a number of checkboxes. The task is to get the value of all selected checkboxes in the array using JQuery. Few of the methods… Read More
Given a set of button and the task is to determine the ID of the button when it is clicked using JavaScript and jQuery. Get… Read More
Given an HTML link and the task is to disable the link by using JavaScript/jQuery. Disable HTML link using JavaScript createAttribute() Method: This method creates… Read More
There is an Input Element which is disabled, the task is to enable it using JQuery. Here are a few examples discussed. To understand example… Read More
The job is to determine the caps lock is turned on or turned off using JavaScript and jQuery. Check caps lock is on/off using JavaScript:… Read More
The jQuery methods are used to change the element ID which are described below: jQuery attr() Method: This method set/return attributes and values of the… Read More
Given an HTML document and the task is to get the text of a <span> tag using JQuery. Method 1: Using jQuery text() Method: This… Read More
The task is to set the focus on form input text field using JQuery. To do so, Here are a few of the most used… Read More
The serializeArray() method creates an array of objects (name and value) by serializing form values. This method can be used to get the form data.… Read More
Given an HTML document and the task is to change the text content of a <span> element. There are various methods used to change the… Read More
The scrollTop() method in jQuery is used to set or return the vertical scrollbar position for the selected elements. With the hep of this method,… Read More
The jQuery remove() method is used to remove a row from HTML table. jQuery remove() Method: This method removes the selected elements alongwith text and… Read More