I am using jQuery and put this code in my javascript:
function HideMe(itemID) {
var myDiv = \'item_\' + itemID;
$(myDiv).fadeOut(\"slow\");
}
Even if the selector didn't return any items in the collection the function call would have worked (not generated this error anyway) if jQuery was loaded correctly. Either there is a conflict in the page, or it didn't load at all. You can try
jQuery(myDiv).fadeOut("slow");
or look into why jQuery hasn't been loaded.
P.S.: don't forget the #
in the selector if selecting by id.