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

Follow me on twitter @reallifejquery Follow reallifejquery on Twitter


Saturday, May 15, 2010

Our relationship was never like this before...

$('#feelings #partner').change(function() {
   if ($('#feelings #partner').val()>$('#feelings #partner').before().val())
   {
      $('#love').show();
   }
   else if ($('.someoneelse').has('interest'))
   {
      $('#partner').replaceWith('.someoneelse');
   }
   else
   {
      $('#facebook_relationship_status').toggle();
   }
});

No comments:

Post a Comment