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: 18.191.93.18
To prevent spam please submit by clicking the kitten: