src code

class method Element.extend

Element.extend(element) → Element

Extends element with all of the methods contained in Element.Methods and Element.Methods.Simulated. If element is an input, textarea, or select tag, it will also be extended with the methods from Form.Element.Methods. If it is a form tag, it will also be extended with the methods from Form.Methods.