jQuery is an upcoming/hot thing right now when it comes to web
development. To me jQuery is slowly taking over flash. There are lots of
things I can do in jQuery that I would have programmed in flash for. Before
you kill the messenger there are things out there that flash can do that
jQuery can’t. So let me post the source code for the tutorial and below that
you can watch in video as I explain.
<html><head><title>jQuery Basics Tutorial</title><script type="text/javascript"src="jquery-1.4.2.min.js"></script><script type="text/javascript">$(document).ready(function(){$('#employees tbody tr:odd').addClass('alternaterow');$('#employees tbody tr:odd').removeClass('alternaterow');$('#hideButton').click(function(){$('#employees').hide();});$('#toggleButton').click(function(){$('#employees').toggle();})});</script><style type="text/css">.alternaterow{background-color:#ccc;}</style></head><body><inputtype="button"id="hideButton"value="Hide Table"/><inputtype="button"id="toggleButton"value="Hide / Show"/><tableid="employees"><tr><td> John
</td><td> Smith
</td><td> Developer
</td></tr><tr><td> Greg
</td><td> Smith
</td><td> Owner
</td></tr><tr><td> Michelle
</td><td> Smith
</td><td> Web Developer
</td></tr><tr><td> Scott
</td><td> Smith
</td><td> IT Administrator
</td></tr><tr><td> Michelle
</td><td> Smith
</td><td> Web Developer
</td></tr></table></body></html>