Tuesday, 6 August 2013

What is the Use of .serialize() in JQuery

The .serialize() method creates a text string in standard URL-encoded notation for form elements. $(’#form’).serialize() would have output something like
‘a=1&b=2&c=3&d=4&e=5′ where a,b,c,d,e are name of input elements of form & 1,2,3,4,5 are their correponding values

No comments:

Post a Comment