I'm trying to get the href attribute from a div with the class name 'download'. I know I could use the following to access it from the DOM:
I know you can use $(".download").attr("href");
However, the html doesn't exist in the DOM yet, its only in a variable.
Is there a way to get from href from a variable?