Skip to content

Tag Archives: jQuery-Misc

Given an HTML element and the task is to click and hold an element in a document for a few seconds to perform the operation… Read More
Given an HTML document and the task is to remove the parent element except for its child element. Approach 1: Use contents() method to select… Read More
Given an HTML element and the task is append an element in the document after few seconds using fadeIn effect with the help of JQuery.… Read More
In General, jQuery provides various function to handle selectors, selector properties and even documents, etc. Whereas here using jquery change event for content editable. jQuery… 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 select an element from the HTML document and check that element is empty or not. There are two methods used… Read More
To focus on element there is an inbuilt selector available in jQuery, which is used to detect the currently focused element. When the element is… Read More
Given an HTML document and the task is to select the elements with ID starts with certain characters using jQuery. Approach: Use jQuery [attribute^=value] Selector… Read More
Given an HTML document containing a table. The task is to insert a new row in that table at a certain index using JQuery. Approach:… Read More
An option can be added to a select element using 3 approaches in jQuery: Method 1: Append the option tag to the select box The… Read More
The cursor style is used to specify the mouse cursor to be displayed while pointing on an element. Cursor Value: alias: This property is used… Read More
An element can be selected by the name attribute using 2 methods: Method 1: Using the name selector method The name attribute selector can be… Read More
The task is to determine the user’s device, whether it is iPad or not, using JQuery. Below are the required methods: Navigator userAgent Property: This… Read More
An option can be removed from a select box using 2 approaches in jQuery: Method 1: Removing the option in the box directly The option… Read More
The task is to remove the option elements from the select element using jQuery. Approach: Select the option from select which needs to remove. Use… Read More