|
.toJSON ()
toJSON() function is used to input element and values in a form into JSON name value pairs. toJSON() should be used againt a form Nedil Objects.
Returns
Example 1
JS
HTML
$.domLoaded(function() {
// inpJSON will contain all input elements name and values
var inpJSON = $.get("#details").toJSON();
});
| |||||
