[jQuery] convert code from prototype
Hello
I'd like to get started with jquery and I was wondering whether
somebody could give me a little hand or point me into the right
direction.
How would I properly convert something like the following to jquery:
var Multi = new Class ({
options: {
max : -1
},
initialize: function(el, options) {
this.setOptions(options);
this.fld = $(el);
},
convert: function(v) {
return v.replace(/\\/g,'/');
}
});
var m = new Multi(el);
Thank you in advance for your help.