i have problem with this block of ajax code, this function is triggered by onChange event on combobox,
function showDistr()
{
idstate = document.getElementById("statepar").value;
$.ajax({
url:'load_distr.php/?id="+idstate +"',
success: function(response) {
$('#dist').html(response);
},
dataType:"html"
});
return false;
}
this is the combobox,
<select class="form-control" id="statepar" onChange="showDistr()" style=\"WIDTH: 250px; HEIGHT: 22px\" >
it comes error "Uncaught ReferenceError: $ is not defined" on $.ajax({
anyone give me suggestion about this?
thank you