Code snippet as follows:
$(this).parents('td:first').next().find('option').customizeMenu('myMenu2');
This works,but :
var listener = function(){
$(this).parents('td:first').next().find('option').customizeMenu('myMenu2');
};
listener();
is not working,why and how to fix it?