var A=function(){
};
$.extend(A.prototype, {
init:function(){
alert('A init');
}
});
var B=function(){
};
$.extend(B.prototype,A.prototype,{
init:function(){
alert('B init');
}
});
var p=new A();
p.init();
var x=new B();
x.init();
is the above the best way to create class and inheritance in jQuery? In B's init how do I invoke parent's init (similar to super.init() in OO languages)?