Possible Duplicate:
How do you detect the clearing of a “search” HTML5 input?
You know in Google Chrome when you have a text field as type="search" that it adds a magnifying glass and a small "x" to the right?
How do I detect if that is clicked?
I tried to bind .click .mousedown .clear and more but nothing works.
I am trying to switch to a different view when the field is cleared.
I got it working when you backspace to empty but it doesn't work when you click the X.
Thanks!