Somebody help me please, i am a beginner of php programming,
i get message like this:
Parse error: syntax error, unexpected '(', expecting variable (T_VARIABLE) or '$' in C:\Users\Sendi\Documents--- Khoreiza\xampp\htdocs\ABRN\content\users\form.php on line 2
and this is the error code:
$(function(){
$("#province_wrapper").hide();
$("#kelas").change(function(){
if($(this).val() != 0){
$("#province_wrapper").show();
$.get("ajax.php?id_kelas="+$(this).val(),function(anggota){
var p_html = "";
for(var i=0;i<anggota.length;i++){
p_html += "<option value='"+anggota[i].noanggota+"'>"+anggota[i].nama_lengkap+"</option>";
}
$("#anggota").html(p_html);
},"json");
}
});
});
?>