This repository has been archived by the owner on Aug 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
forms
larukedi edited this page Dec 15, 2014
·
4 revisions
Usage: $l.form.ajaxForm(formobj[, fncfinish, fncbegin])
var element = $l('#form');
$l.form.ajaxForm(element);
Usage: $l.form.toggleFormEditing(formobj[, value])
var element = $l('#form');
$l.form.toggleFormEditing(element, false); // disables form
Usage: $l.form.serializeFormData(formobj)
var element = $l('#form');
// returns FormData object
console.log($l.form.serializeFormData(element));
or
Usage: $l.form.serialize(formobj)
var element = $l('#form');
// returns { name: 'eser', surname: 'ozvataf' }
console.log($l.form.serialize(element));
Usage: $l.form.deserialize(formobj, values)
var element = $l('#form');
$l.form.deserialize(element, { name: 'eser', surname: 'ozvataf' });
Please don't hesitate to submit issues and pull requests.