how to get the value of href in jquery code example Example: get attribute value jquery href var href = $(this).attr('href');