topical media & game development
lib-jquery-learning-code-11-object-methods-object-methods.js / js
// Step 1
// document.ready(function() {
// $('#swap').click(function() {
// $('li').swapClass('this', 'that');
// return false;
// });
// });
// Step 2
document.ready(function() {
$('#swap').click(function() {
$('li')
.swapClass('this', 'that')
.css('text-decoration', 'underline');
return false;
});
});
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.