Web Development with jQuery®

(Elliott) #1

(^100) ❘ CHAPTER 4 MANIPULATING CONTENT AND ATTRIBUTES
$('table').toggleClass('johnLennonAlbums');
}
);
}
);
Figure 4-5 shows the preceding example in Safari on a Mac.


FIGURE 4-5


Clicking the Add Class button provides a styled table, as shown in Figure 4-6.


FIGURE 4-6


http://www.it-ebooks.info

Free download pdf