

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What is the jQuery destructive method end()?
The jQuery end() method reverts the most recent destructive operation, changing the set of matched elements to its previous state right before the destructive operation.
This is how you can use it,
operations.end()
Example
You can try to run the following code to learn about jQuery destructive method end(),
<html> <head> <title>jQuery end() function</title> <script src = "https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script> $(document).ready(function(){ $("p").find("span").end().css("border", "4px red solid"); }); </script> <style> p{ margin:5px; padding:5px; } </style> </head> <body> <p><span>Hello</span> World!</p> </body> </html>
- Related Questions & Answers
- What is Destructive Testing(Techniques, Methods, Example)?
- What is Non Destructive Software Testing (NDST)?
- What does the .end() function do in jQuery?
- What is jQuery.ajaxSetup() method in jQuery?
- jQuery is() Method
- What is $(document).ready() method in jQuery?
- What is $(window).load() method in jQuery?
- What is End-to-End Encryption (E2EE)?
- What is the difference between jQuery add() & jQuery append() methods in jQuery?
- End-to-End Testing Tutorial: What is E2E Testing with Example
- What are Destructive Testing and Nondestructive Testing? (Techniques, Methods, Example)
- What does html() method do in jQuery?
- What does jQuery.serialize() method do in jQuery?
- What does jQuery.andSelf( ) method do in jQuery?
- What does jQuery.children() method do in jQuery?
Advertisements