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