I want to create dynamic html links with data from AIPIFLICKR, I get the data from flickr so I just need to make the links with invisble date from author_id and when clicked on I need to get this in JS back my code (it works but not the links):
var output = "";
$.each(flickrresponse.items, function(index, value) {
  //console.log(index);
  output += '<div> <a href="">' +
    value.author + '</a><figure><img src="' +
    value.media.m + '" alt="' +
    value.title + '" title="' +
    value.title + '" /><figcaption>' +
    value.author + '</figcaption></figure></div>';
})
$('#output').html(output)
and then I need somthing like this:
$(document).ready(function() {
  $('a').on('click', function(e) {
    e.preventDefault();
    extrafeatures(datafromlink);
  });
});
 
    