jquery get link code example
Example 1: get attribute value jquery href
var href = $(this).attr('href');
Example 2: jquery get url
var currentURL = $(location).attr('href');
var currentURL = window.location.href;
var href = $(this).attr('href');
var currentURL = $(location).attr('href');
var currentURL = window.location.href;