Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Databind jQuery Plugin
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.md
example.html here we go
jquery.databind.js
jquery.databind.min.js here we go

README.md

Databind jQuery Plugin.

Serializes a form into a JSON compatible JS object.

$('yourform').fieldsToJSON()

Databinds (one way for now) a JSON object onto the fields.

$('yourform').JSONToFields()

See example.html source for how this works.

Small note, if name="root.val..." is not used, it searches for the initial data-bind value and uses that for output. So you do not need to use name=".." if you already bind to the data-bind attribute, however this can be convenient if your output JSON structure looks different than your input.

Something went wrong with that request. Please try again.