I have
function Outer(x, y){
var X = x;
this.x = x;
$('#div1').find('input[type=checkbox]').each(function(index, values){
$(values).text(x); //x is undefined
$(values).text(X); //X is undefined
});
}
How to pass the values to the inner functions?