jQuery Events
home
Run
screen_rotation
fullscreen
cloud_download
navigate_next
<!DOCTYPE html> <html> <head> <title>tr odd Selects all odd rows of table - 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(){ $("#demo").click(function(){ $(this).css("background","yellow"); alert("You Clicked Me!"); }); }); </script> </head> <body> <a href="javascript:void(0)" id="demo"> Click me </a><br><br> </body> </html>
<!DOCTYPE html> <html> <head> <title>tr odd Selects all odd rows of table - 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(){ $("#demo").click(function(){ $(this).css("background","yellow"); alert("You Clicked Me!"); }); }); </script> </head> <body> <a href="javascript:void(0)" id="demo"> Click me </a><br><br> </body> </html>
Copyrights@tutorialsplane.com