Is it possible to do this from within a class?
$('#' + field).click(this.validate);
So basically I want to pass a function of the object that should be executed whenever something is clicked. Also, if there are more than 1 instances of this object, then the correct instance (i.e the one which runs this code for the given field) should be executed.
Yes it is possible.
10 mins ago was writting a snipet because i had just that problem
the div.myalarms_delete also as the id I needed