I have a a href which is formatted as :
<a href class='link' location='USA'>USA</a>
I'm then using JQuery to try and get the value of location and pass that to a new page.
$(".link").click( function() {
var location = $(this).attr("location").val();
Popup('open.php?action=region&location=' + location,'open','300','200','yes');return false;
});
This isn't working.
I'm not getting the value of location passed.
Can someone advise what I've done wrong !
Thanks