allows attaching user data to a form without modifying the DOM
name | string | the name of an item |
value | string | the value of an item (radiobutton only, omit for other types) |
udKey | string | the key that will point to the stored user data |
udValue | mixed | the value of userdata associated with "udKey" |
// for radio button
myForm.setUserData("mode", "a", "auto", true);
myForm.setUserData("mode", "a", "size", 10);
// for other types
myForm.setUserData("login", "max_length", 15);
myForm.setUserData("login", "char_allowed", 15);