Loading data from MySQL and populating dropdown select with jQuery Mobile, PHP
PHP Snippet 1:
header('Content-Type: application/json');
echo json_encode($data);
PHP Snippet 2:
$.each(data,function(index,item)
{
$('<option>').val(item.id).html(item.job_name).appendTo("#job_id");
});