$(this).attr('href')
I know that this code brings me to the link as a whole But I want to just get on https://www.facebook.com
$(this).attr('href')
I know that this code brings me to the link as a whole But I want to just get on https://www.facebook.com
try with this:
$(this).attr('href').split("/")[2]