jQuery :reset selector17 Mar 2025 | 2 min read In this article, we are discussing how to use the :reset selector in jQuery. In jQuery, the :reset selector is used to select the elements of type reset. It selects the input elements and buttons with type = reset. If we write input:reset, the selector will only select the input elements with type reset. Whereas, if we write :reset, the selector will select both input as well as button elements. So, we can also select specific elements of type reset using the :reset selector. SyntaxNow, let's see an example of the :reset selector. ExampleTo understand the use of :reset selector in jQuery, we are creating a simple HTML document into which we have created a form with the id = "myForm". In this form, there are four text fields and two buttons that are "Submit", and "Reset". We are using the :reset selector to select the button elements of type reset. The button named as "Reset" is of type reset, so the :reset selector will select this button. Test it NowOutput In the output, we can see that the style of the Reset button is changed. After the execution of the above code, the output will be - ![]() Next TopicjQuery size() method |
jQuery event.entDefault() method As the name implies, the entDefault() method ents the occurrence of default action of the selected element. As an example, this method can stop a submit button from submitting a form, or it can ent an anchor from following a URL. This method...
2 min read
jQuery :contains() selector The :contains() selector in jQuery selects the elements that contain the specified string. The matching string can be directly appeared in the selected element or in the descendants of that element. This :contains() selector is widely used with other selectors to select the elements containing...
2 min read
As its name implies, the last() method returns the last element of the selected elements. It is an inbuilt method in jQuery. If we need to get the first element, we can use the first() method. Syntax $(selector).last() This method doesn't accept any argument. The selector in the above...
2 min read
The even() method in jQuery is used to select the elements with even index numbers (such as 2, 4, 6, etc.). The index starts with 0. It works similar to the odd() method, but it selects even numbers. The even() method returns the even indexed elements...
2 min read
This jQuery method is used to fetch the JSON data from the server using an AJAX HTTP GET request. Syntax $(selector).getJSON(URL, data, success(data, status, xhr)) Parameter Values This method includes three parameter values in which one is mandatory, and others are optional. We must have to include the URL parameter...
2 min read
The $.uniqueSort() method is used to sort an array of DOM elements and remove the duplicates. It returns the sorted array after removing the duplicates. This method searches through the array of objects, sorts the array, and removes the duplicate nodes. The node which is exactly the...
2 min read
jQuery The is used to test whether the passed argument is an array or not. This method returns a Boolean value. If it finds the passed value is an array, it returns true. Otherwise, it returns false. Syntax jQuery.isArray( obj ) This method accepts a single parameter, which...
2 min read
jQuery As the name implies, the is used to convert an array-like object into the true JavaScript array. It returns the array. Syntax jQuery.makeArray( obj ) This method accepts a single parameter, which is defined as follows - obj - It is any object to turn into a native...
2 min read
The is used to insert additional contents before the selected elements. It is an inbuilt method in jQuery. It is similar to the jQuery before() method. The main difference between before() and insertBefore() is in syntax and placement of the content and target. We can use...
2 min read
In this article, we will see how to create the Coming Soon Page with Countdown using Jquery, HTML And CSS. A coming soon page is the first page of a website. It should have attractive-looking features and includes all information about the website etc. It...
14 min read
We request you to subscribe our newsletter for upcoming updates.
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India