Don't reset selected date when the element is a button.

If the element is not a input, the selected date changes to today on
update event. This commit adds  `this.element.text()` as an alternative to
input val() method.