I am calling a php function using ajax.
It works and i got a php array
in ajax success.
like.
Array ( [0] => Array ( [calendarId] => 1 [calendarName] => Calendar One )
[1] => Array ( [calendarId] => 2 [calendarName] => Calendar Second ) ) $.ajax({ url:"data.php", success:function(data){ console.log(data); } });
I want to set this array in to a drop-down.
how can I set this php array in to drop-down using jquery AJAX success event.