jQuery add() Method
home
Run
screen_rotation
fullscreen
cloud_download
<!DOCTYPE html> <html> <head> <title>add - jQuery Example</title> <script type="text/javascript" src="http://code.jquery.com/jquery-2.1.4.min.js"> </script> <script type="text/javascript"> $(document).ready(function(){ $("div").add(" p ").css("background","yellow"); }); </script> </head> <body> <div>This is Demo Div</div> <p>This is Demo Para.</p> </body> </html>
<!DOCTYPE html> <html> <head> <title>add - jQuery Example</title> <script type="text/javascript" src="http://code.jquery.com/jquery-2.1.4.min.js"> </script> <script type="text/javascript"> $(document).ready(function(){ $("div").add(" p ").css("background","yellow"); }); </script> </head> <body> <div>This is Demo Div</div> <p>This is Demo Para.</p> </body> </html>
Copyrights@tutorialsplane.com