In function myajax_submit send the headers before echoing any content
header('Content-Type: application/json');
echo json_encode($response);
die();
In function myajax_submit send the headers before echoing any content
header('Content-Type: application/json');
echo json_encode($response);
die();