Working with jQuery, Part 2: Building tomorrow's Web applications today - 0 views
-
// In this example, each row in a table will get a red background when // the mouse moves over it and a white background when the mouse leaves. $("tr").hover(function(){ $(this).css("background","#0000ff"); }, function(){ $(this).css("background","#ffffff"); });
-
attr(name)
-
// will change the image source, and the image displayed on the page will change $("img").attr("src", "myimage.jpg");
- ...5 more annotations...