Search code examples
jqueryformsprototypejs

Is there any equivalent in jquery for prototype serialize()


I am trying to pass form's data to jquery ajax request. i find easy way for prototype $('formid').serialize() which will reqturn a string with all elements name and their value inside that form, ready for ajax request in a handy way. that's easy.

so is there any equivalent in jquery?


Solution

  • Yes it's the same: http://api.jquery.com/serialize