Hi all,
In my project I need to convert a big script(form validation plugin) from mootools to Jquery. Its has oops concept in it. I searched a lot and found HJS object oriented Jquery plugin and incorporated but having problem in the following...


1. initialize : function (form, options){
2. if (this.form = $(form)) {
3. this.form.isValid = true;
4. this.regex = ['length'];
5. this.alertMsg = [];
6. this.validations = [];
7. var regex = new Hash(this.options.regexp);
8. regex.each(function(el, key) {
9. this.regex.push(key);
10. }, this);
11. var alertMsg = new Hash(this.options.alerts);
12. alertMsg.each(function(el, key) {
13. this.alertMsg.push(key);
14. }, this);
15. $(form).find("*[class*=validate]").each(function(el) {
16. this.register(el);
17. }, this);
18. }
19. },

......

Line no 7 and 11 has the hash function. What is the equivalent in Jquery?
Line no 15 has "el". Its been said that el is extending elements in mootools framework. What should I change to achieve in Jquery?

Thanks,
Hema