Board Thread:General Coding Help/@comment-32922752-20181004153238/@comment-32922752-20181004160754

Fngplg wrote: text: js: $('.myclass').each(function { var $this = $(this),      url = 'https://www.googleapis.com/youtube/v3/videos?part=statistics&id=$yturl&key=$apikey';  url = url.replace('$yturl', $this.data('url')).replace('$apikey', $this.data('key'));  $.getJSON(url).done(function(data) { $this.text(data.items[0].statistics.viewCount); }); }); Add the JS code under the original code?Or replace it?