Using the following code I'm unable to get value of this.select inside the calling function change... see below
function getSelection(selectionType) {
this.select = selectionType;
alert(this.select); // works
this.getFile = function() {
$(".file").change(function() {
alert($(this).attr("id")); // works
alert(this.select); // says undefined
if ($(this).attr("id") == this.select) {
alert("test"); // no display
}
});
};
}