[jQuery] Equivalent of the Prototype Create.Class()

[jQuery] Equivalent of the Prototype Create.Class()


I'm converting some Prototype javascript and have almost completed it,
but am running into an issue with the Class.Create() Prototype method.
In prototype:
var DatePicker = {};
DatePicker = Class.create();
DatePicker.prototype = {
initialize:function(triggerElement, formElement) { ...
allows the above to be called like this:
var myPicker = new DatePicker($('aDate'),$('testDate'));
Is there a way in jQuery to either simulate the above or do what it
intends, which is to have multiple DatePickers on the same page?
Thanks!












    • Topic Participants

    • josh