remove() with more than 1 parameter
hello!
Please, is it possible that method : remove() has moer then one parameter, sth like:
- <!DOCTYPE html>
- <html>
- <head>
- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
- <script>
- $(document).ready(function(){
- $("button").click(function(){
- $("p").remove(".italic", "bold");
- });
- });
- </script>
- </head>
- <body>
-
- <p>This is a paragraph in the div.</p>
- <p class="italic"><i>This is another paragraph in the div.</i></p>
- <p class="bold"><b>This is another paragraph in the div.</b></p>
- <button>Remove all p elements with class="italic"</button>
-
- </body>
- </html>
-
-
Many thanks!!!