Novelty Promotes Magicians
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

mk-databridge

1.0.2 • Public • Published

mk-databridge

Databridge is a serialization jQuery plugin to read data from forms, and to set data to forms. Supports nested objects, boolean and array checkboxes, on fly data formatting and conversion. Works with any elements with attributes 'name' or 'data-name', including non-input elements.

Demo

Inclusion

Include script into your page:

<script src="path/to/plugin/mk-databridge.min.js" ></script>

Basic usage

To set data call databridge with data object:

$('.form-container').databridge(dataObject);

To get data call databridge with no arguments:

var dataObject = $('.form-container').databridge();

Details and Demo

install

npm i mk-databridge

Downloadsweekly downloads

9

version

1.0.2

license

MIT

homepage

mkant.ru

repository

Gitgithub

last publish

collaborators

  • avatar