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

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