I know that jQuery.extend can be used to add by own custom methods to an object such as a DOM element but Prototype's Element.extend adds all the DOM element helper methods to the object. It is that functionality that I am after.
For instance
this.panel = document.createElement('div');
I want this.panel to be a reference to that new div but also have the handy element wrapper methods attached to it.
I can get something close by wrapping the call to createElement with jQuery()
this.panel = jQuery(document.createElement('div'));
but that returns an array of one. I just want the element.
What do others do?
TIA
Pat Long