how to get href from a tag in jquery code example Example: jquery read href attribute var href = $(this).attr('href');