How to remove next element using jQuery?

To remove the next element in jQuery, use the remove().

1. Code:




   
   
   Soltuts.com





   
cancel(X) Demo

cancel(X) Demo

cancel(X) Demo

2. Example:

Run the program to get the result. Whenever you click the cancel(X), the jQuery will remove the element.