a href with variable code example
Example 1: store a href in a variable
var xyz = $(selector).attr('href');
Example 2: store a tag url in a variable
var xyz = $(selector).attr('href');
var xyz = $(selector).attr('href');
var xyz = $(selector).attr('href');