Have next script:
function clicker(){
var linkId = "[id*=" + "link]";
var butnId='initial';
$j(linkId).click(function(){
var postfix = $j(this).attr('id').substr(4);
butnId = '#' + 'butn' + postfix;
});
return butnId;
}
Function output is 'initial' value.
How to return actual value of variable butnId,after it had been transformed within click function?