The release notes for 0.96 include:
I can't work out how to enable this on an iPhone - any clues?
- Added a (x) to clear input text
Thanks in advance!
The release notes for 0.96 include:
I can't work out how to enable this on an iPhone - any clues?
- Added a (x) to clear input text
Thanks in advance!
OK - I've found
showClear: true;
and after a bit of work with the CSS I've got it working the way I want.
However...
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?
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...