I read many questions on Stackoverflow related to this question but there is no thing really solve the problem
I have Array selected_keywords_arr
I wan to make a loop on each value on this array to get auto complete Youtube search after Clicking a button I implemented the same function but in PHP
using this
foreach ($youtube_sugeestion_arr as $val ) {
$url = sprintf("http://suggestqueries.google.com/complete/search?hl=en&ds=yt&client=youtube&hjson=t&cp=1&q=%s&alt=json", urlencode($val));
// rest of the code
I just need to do the same using Javascript or Ajax