Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Submitting Values Without Refresh Reply To: Submitting Values Without Refresh

#158722
CrocoDillon
Participant

Make sure the quotes you use in JavaScript are straight quotes (' or "), it looks like yours are not though it could be copy pasting here that messes things up.

You’re using a different selector for the form for the submit event handler and the serialize function. I think you can use $(this).serialize() to make sure you serialize the right data.

Also take a look at jQuery’s $.post function. Though not needed, it’s a nice ajax wrapper for POST requests.