I have a click event, and within the event handler there's a function that suppose to return a string value
for example:
$('.customDropDownList li').click(function(){
var yourCurrentSeasonSelection = selectionReplaced(this);
//return var yourCurrentSeasonSelection from here.
});
function selectionReplaced(refT){
var valueRegistered = $(refT).find("a[href]").attr('href').replace('#', '');
....
return valueRegistered;
}
How do I get the return value after the click from the yourCurrentSeasonSelection variable?