Home
<!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> <script> $(document).ready(function () { $('p, div, code').append("- Appending after p tag, div tag and code tag"); }); </script> </head> <body> <h1>CSS Selector: $('p, div, code')</h1> <div>div</div> <p>paragraph</p> <code>code</code> <pre>pre</pre> </body> </html>
Result: