For jQuery's ajax, please refer to this documentation for more detail.
http://api.jquery.com/jquery.ajax/
success
Type: Function( Anything data, String textStatus, jqXHR jqXHR )
Basically, add an argument to success will get you the response.
success: function(data) {
// Your data is arrived.
}
beanmoss said:
If you know how to use ajax in html/php, there's no difference when using it on laravel. Good thing is you can use Laravel's route() helper so the url on your ajax will get the correct path.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community