views:

24

answers:

2

hi

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?

A: 

Same thing (except the # because jQuery uses CSS-style selectors):

$('#formid').serialize();
BoltClock
+2  A: 

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

turingmachine