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
Log in to answer.
Copyright © dBuggr.com - All Rights Reserved.