Retrofitting old code with JQuery

I had a lot of old code that is full of document.getElementById('foo') in it that I wanted to do JQueryish things to. Luckily JQuery is smart enough to handle them natively:

var my_elem = func_that_returns_eid();
var elem2 = document.getElementById('bar');

$(my_elem).css('color','red').fadeIn('slow');
$(elem2).hide();


Note: Replies will be formatted with PHP Markdown Extra syntax.

Name: Email (Not Required):
 
Logged IP: 3.234.143.26
To prevent spam please submit by clicking the kitten: