Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Databind jQuery Plugin

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 README.md
Octocat-spinner-32 example.html
Octocat-spinner-32 jquery.databind.js
Octocat-spinner-32 jquery.databind.min.js
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.