You are not logged in.

Important Note: This forum is being archived and will be completely locked down on the 7th of February. The new forum can be found at http://laravel.io.

Announcement

    Laravel 4 Advanced Architecture: Book Now On Sale

#1 2013-10-19 15:08:47

Rups
Artisan
Registered: 2012-06-21
Posts: 290

Submit form with Ajax

What is wrong with the following code: http://paste.laravel.com/10bs ?

Because the submit doesn't work with Ajax. It works without Ajax.

Last edited by Rups (2013-10-19 16:27:10)

Offline

#2 2013-10-19 16:20:23

JonoB
Artisan
Registered: 2011-11-09
Posts: 284

Re: Submit form with Ajax

Your jquery code is looking for $('form#foobar'), but your form has an id of register

Offline

#3 2013-10-19 16:28:02

Rups
Artisan
Registered: 2012-06-21
Posts: 290

Re: Submit form with Ajax

Copy pasted it to fast. Changed it. That wasn't it anyways.

Offline

#4 2013-10-19 17:12:09

JonoB
Artisan
Registered: 2011-11-09
Posts: 284

Re: Submit form with Ajax

Also, jquery sometimes has a problem capturing the submit event on a form if you have an element called submit.

Offline

Board footer

Powered by FluxBB

');