Update textinput.js - 'refresh'  method for textinput

reference to issue #5708
and previous pull request.
#5766
added 'refresh' method to textinput

test case :http://jsbin.com/edidil/5/ [Got various combinations of input fields and button to refresh input.]