1

I have simple function, but when i call it, im getting TypeError: $ is undefined

Is there any error in the code? Maybe its something wrong due to wordpress that im using ?

function dynamic_Select(fk, value)
 {
$.ajax({
    type: "POST",
    url: "test.php",
    data:{
             fk:    fk,
             value: value,
         },
    success:function(response){ alert('success');   },
    error: function (request, status, error) { alert(request.responseText);   }

}); 


}

Im calling this function from:

  <select name="<?=$field['key']?>" onchange="dynamic_Select(this.getAttribute('name'), this.value)">
Mindau
  • 615
  • 6
  • 18

0 Answers0