Jquery return value

Im trying to get a return value from a Jquery function. The value definetly exists but I can’t seem to return a valid value from the function with the return false: Function Below:

function clicky() {
var thisHTML1;
$(document).on(‘click’, ‘#htTab a’, function() {
var thisHTML = $(this).html();
alert(thisHTML);
thisHTML1 = thisHTML;
return false;
});

        return thisHTML1;
    }

The value definetly exists but I can’t seem to return a valid value from the function with the return false

That is by design: return false entails that the execution of the function is aborted. Just try removing it and see what it does.