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