Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

How to capture the event when the user clicks / touches on the clear ( 'X' ) button that appears on the text boxes in IE 10.

$
0
0

I have a webpage containing a textbox. Some events are bound to the textbox on key events, hence the UI changes as the user types on the textbox.

With IE10 a clear ('X') button appears on the textbox which allows users to clear the textbox.Is there any event in JavaScript through which I can capture the clearing of the textbox with the clear ('X') button?

I also tried using change event of the textbox, but the problem with change event is that it gets fired only when the user focuses out of the textbox (see this fiddlehttp://jsfiddle.net/MDMV5/   for repro) , which I don't want.

Reiterating the question: Is there any event in JavaScript through which I can capture the clearing of the textbox with the clear ('X') button?


Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>