iam trying populate a list but seems like nothing is going on in my javascript i try to send an alert maybe im doing something wrong
$(function(){
$("#gallery_ids").change(function(){
$.getJSON("/open/ajax_gallery",{id: $(this).val(), ajax: 'true'}, function(j){
alert("hi");
)};
});
});
in my php im returning
echo $json;
exit();
output:
[{id: 36, name: 'Test 1'},{id: 44, name: 'Test 2'},{id: 43, name: Test 3'},{id: 42, name: 'Test 4'},{id: 41, name: 'Test 5'}]