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

Follow me on twitter @reallifejquery Follow reallifejquery on Twitter


Monday, May 31, 2010

Police work

$('.crime').stop();
if ($('#criminal .crimes').prev().prev()) {
   // Third strike
   $('#criminal').appendTo('#jail');
}
else {
   // Let them go with a warning
   $('#criminal .mindset').toggle();
}

No comments:

Post a Comment