This is a random list of jQuery code that roughly reflects real life.

Follow me on twitter @reallifejquery Follow reallifejquery on Twitter


Saturday, May 29, 2010

Packing your suitcase

$('#clothes').each().effect('fold');
$('#shoes').each().add('socks'); // so the shoes keep their shape
$('#suitcase').add(document.getElementById('clothes'));
$('#suitcase').add(document.getElementById('toiletries'));
$('#suitcase').add(document.getElementById('shoes'));
$('#suitcase .zip').scroll();

No comments:

Post a Comment