I am having an anchor link in aspx page like:
Go
To get the href of the link:
var href = $('#Anchor').attr('href');
To get the HTML inside:
var html = $('#Anchor').html();
#Anchor is the CSS-format selector that means, "Select the element with the ID 'Anchor'."
#Anchor