Skip to content

bojangles-m/sof

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published