getUserData
returns any user data set into the given input by the setUserData() method
mixed getUserData(string name,string value,string udKey);
name | string | the name of an item |
value | string | the value of an item (radiobutton only, omit for other types) |
udKey | string | the key value that points to the user data |
mixed | the item's user data |
Example
myForm.setUserData(name,udKey,udValue);
// getting userdata value of radiobutton
var auto = myForm.getUserData("mode", "a", "auto");
var size = myForm.getUserData("mode", "a", "size");
// getting userdata value of other types of items
var max_length = myForm.getUserData("login", "max_length");
var char_allowed = myForm.getUserData("login", "char_allowed");
See also
Back to top