[jQuery] Access to the outer object from $.each.
I have the code bellow as bellow:
jQ.fn.Form = function(){
//check if the element is a form
if(!jQ(this).is("form")){
alert("Expecting form element!");
return this;
}
jQ(":input", this).each(function(){//iteration
min = jQ(this).attr("min");
if(typeof min == 'undefined'){
return;
}
alert(min);
});
};
How can I access (the right way) to the form object from within
iteration function.