Search code examples
javascriptserializationjavascriptserializer

How to serialise a javascript object


When you serialise a form using jQuery.serialize(), the method will serialise the form fields and its values so you can submit to the server. Is there a method/function that would do the same with a javascript object instead of a form?


Solution

  • You're looking for the jQuery.param function.