Get aria-label from html using jquery

Is there any way to get the value of the aria-label using jQuery?

I have this function

$(document).ready(function() {
    console.log("dom ready")
    $(document).on('click', '.clicker', function(e) {
        var hrefValue = this.href;
        var label = this.aria - label;
        var id =;
        console.log("aria label " + label);

Which works if I want to get the hrefValue from this dropdown:

<a class="dropdown-toggle rootelements clicker" role="button" aria-label="'+elem.appname+'" data-toggle="dropdown" data-toggle="tooltip" title=' + + ' href="' + elem.value +'"><i style="color:' + elem.iconcolor + ';" class="' + elem.icon + '" id="jsonicon"></i></a>

But this console.log("aria label " +label) Returns aria label NaN for me when expected output is debug


var label = $(this).attr('aria-label');