I am using a jQuery plugin and the following script works perfect. Is there a better way to do it without using the anonymous function. Thanks
$('.sortName').selectIt({
'title':'Title',
'click':function(value){someFunction(value);}
});
function someFunction(value){alert(value);}
Pass the function itself instead of passing an anonymous function.