hello,
I’m trying to include a link to a php file with no success.
If it was in PHP I would use something like $_SERVER[‘DOCUMENT_ROOT’] . ‘inc/filename.php.php’ to access the file but not sure how to accomplish this in javascript.
I have a test domain called testing.dev
under the testing.dev domain i have: /inc/location/get_province.php
Can’t seem to find a the right code and any help would be greatly appreciated.
javascript:
function getProvince(val) {
$.ajax({
type: "POST",
url: "/inc/location/get_province.php",
data:'countryID='+val,
success: function(data){
$("#Iprovince").html(data);
}
});
}