In that case, you can’t just tack on the Prototype functions like: obj.addClassname(‘someclass’); You have to use an object that is extended with the Prototype or other library’s magic.
In Prototype, the easiest way to do that is to get the Object’s ID and use the $(‘someid’).someFunction(); methodology. Getting the ID is really simple, though I spent 20 minutes trying to find it on Google. Here’s how:
var ID = object.id;
There you go!