Submit form within bootstrap modal using ajax and codeigniter without page change
问题 I am trying to submit a form within a bootstrap modal using ajax. And my form is successfully submitted, but the success statements within ajax are not executed. The page is redirected to a blank page saying {"msg":"ok"}. I am pasting the code from controller and view. Please help. Controller $update_profile_details = $this->userp_m->edit_profile_m($uname,$uemail,$data1,$new_email); if($update_profile_details == true) { $status['msg'] = 'ok'; } else { $status['msg'] = 'err'; } echo json