Check documentation for the latest version of dhtmlxSuite setUserData DHTMLX Docs


allows attaching user data to a form without modifying the DOM

void setUserData(string name,string value,string udKey,mixed udValue);


namestringthe name of an item
valuestringthe value of an item (radiobutton only, omit for other types)
udKeystringthe key that will point to the stored user data
udValuemixedthe 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);

See also
Back to top