View Full Version : Clearing input in a TextField

13 Oct 2010, 10:39 PM
The release notes for 0.96 include:

Added a (x) to clear input text
I can't work out how to enable this on an iPhone - any clues?

Thanks in advance!

15 Oct 2010, 12:05 AM
OK - I've found

showClear: true;

and after a bit of work with the CSS I've got it working the way I want.


How can a trap/listen for the event of the "clear" being done? I can't work out what listener I'd add to the TextField (or how to add one to the Clear button).

What I want is for the action of clearing the TextField to also clear the text in a related/inked container.

Any ideas?

15 Oct 2010, 12:31 AM
Further input. On desktop Safari and on the iPhone emulator a change event is triggered, but not on an actual iPhone 4 (or, at least, not until the soft keyboard has gone away)...

So this

change: function (field) {alert('changed');}

doesn't work in the real world, but does on the test bed...