Help converting a Mootools Class.
I've used jQuery and I know how to use it, but I'm still rusty.
Wondering if someone can help me convert the following mootools class to jquery - it's really short.
I can't seem to find the right information on how to write a jQuery class or convert one from mootools.
- var mySelectMenu = new Class({
Implements: [Options, Events],
initialize: function (a, b) {
this.setOptions(b);
this.selectitems = $(a);
this.selectitems.getFirst().addClass("selectTitle").setAttribute("disabled", true);
this.addActions()
},
addActions: function () {
this.selectitems.addEvent("change", function () {
this.fireEvent("select", [this.selectitems.getElement(":selected").get("value"), this.selectitems])
}.bind(this))
}
});