gets actual text value from the control's input
$$("mydatepicker").getText(); $$("mycolorpicker").getText();
To get the control's value you should use the getValue method.