Jquery get the href for a link code example Example: get attribute value jquery href var href = $(this).attr('href');