May I create my class which inherits from jQuery's
I want to inherit the base class of jQuery and create my own tag, such as var mytag=$('<mytag/>') to return my own tag element. Mytag does not necessarily correspond to a single tag. It can be replaced by a brand new tag group, similar to: $('<InputGroup/>') returns not <InputGroup></InputGroup> but <div class='input-group'> <label> </label> </div>.
I have looked up the $. extend and $. fn. extend methods, but none of them can satisfy my expectations, so what are the good ways to implement them for you guys?
Please help me.