Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 821 Bytes

README.md

File metadata and controls

35 lines (23 loc) · 821 Bytes

Sof - Serialize Object Form v0.0.3

Description

The Sof javasciprt serialize data from HTML form to object or JSON

Demo

Just clone it on your server and simple test it ;)

Examples

// without othore options
$("form-slector").sof().get();

// like this you  can set more options
$("form-slector").sof({
	// [json|object] - this two objects can be returned
	type : "object" - [json|object]

	// By select or checkbox change one child to string
	child_to_string : boolean
}).get();

// also set type like this
$("form-slector").sof().get('object');
$("form-slector").sof().setType('object').get();

// get only choosen fileds
$("form-slector").sof().setFields('field_name').get();
$("form-slector").sof().setFields(['f1', 'f2', ...]).get();

General Info

  • Author: Bojan Mazej