$.ajax doesn't execute

JakReloaded

New Member
I have a \[code\]$.ajax\[/code\] code where it triggers when a certain Id is clicked, then, with each click, it queries in a database. My problem is, my other ajax function doesn't work.\[code\]alert("Test");$.ajax({ type : 'GET', url : 'city.php', dataType : 'json', data: { region : $('#province').val() }, success : function(data_1){ $("#city").append("<option value=''>Select City</option>"); for (var i = 0; i < data.province.length; i++) { if(data_1.city != null) $("#city").append("<option value="http://stackoverflow.com/questions/12687549/+data_1.id+">" + data_1.province+"</option>"); }}\[/code\]This code is working on my localhost I have no problem with it but when I upload it in my web host its not querying anymore and populating my dropdown.
 
Top