comments for getValue method, fixes #115
This commit is contained in:
@ -457,11 +457,14 @@ Makes editable any HTML element on the page. Applied as jQuery method.
|
|||||||
return result;
|
return result;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns current values of editable elements. If value is <code>null</code> or <code>undefined</code> it will not be returned
|
Returns current values of editable elements.
|
||||||
|
Note that it returns an **object** with name-value pairs, not a value itself. It allows to get data from several elements.
|
||||||
|
If value of some editable is `null` or `undefined` it is excluded from result object.
|
||||||
|
|
||||||
@method getValue()
|
@method getValue()
|
||||||
@returns {Object} object of element names and values
|
@returns {Object} object of element names and values
|
||||||
@example
|
@example
|
||||||
$('#username, #fullname').editable('validate');
|
$('#username, #fullname').editable('getValue');
|
||||||
// possible result:
|
// possible result:
|
||||||
{
|
{
|
||||||
username: "superuser",
|
username: "superuser",
|
||||||
|
Reference in New Issue
Block a user