Answer the question
In order to leave comments, you need to log in
Why doesn't the loop create multiple buttons?
We need the loop to add all the buttons according to the array:
$.each(data, function(key, video) {
console.log('link:'+video.link+' quality:'+video.quality);
$('.block').html('<a href="'+video.link+'" class="btn btn-primary">'+video.quality+'<br/><small>('+video.size+')</small></a>');
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question