lundi 31 juillet 2017

catch json response in jquery using ajax without refresh [on hold]

I am missing something...but i don`t know what. I want to make an ajax request using jquery and laravel 5.4. In java script i have this script

My html form is form

The if for checking if the password match don`t work. It goes directly to url and get response from server in browser (plain json)

 return response()->json(['success' => false, 'message' => 'Password don`t match!']);

How to check (on client) if password match? (then do the ajax) How to catch the response and showing in alert? (not plain json in browser) WITHOUT REFRESH???



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2tXvVsX
via IFTTT

Aucun commentaire:

Enregistrer un commentaire