DHTMLX Docs & Samples Explorer

getItemValue(name)

Returns item's value (for inputs only).

Parameters:

  • name - the id of item (the item's parameter 'name')
var value = myForm.getItemValue("myInput");

See also:

Details:

In case of item calendar, the method returns the value as a Date object. If you need to get the value as a string with the specified date format you should specify the 2nd parameter and set it to true:

var value = myForm.getItemValue("myCalendar", true);