Sunday, May 19, 2024
 Popular · Latest · Hot · Upcoming
82
rated 0 times [  83] [ 1]  / answers: 1 / hits: 17082  / 7 Years ago, mon, march 6, 2017, 12:00:00

How to bind an event with Angular 2 (4, 5, 6, 7) for the cross icon of an <input type=search>? Which event gets triggered?



Looking for a solution like (other than (search) because it does not work in IE):



<input type=search (click)=search()>


Additional question: What's the official name of this cross icon? Kinda hard googling/duckduckgoing for a solution when not knowing the right terms?



Duplicate Question: How do you detect the clearing of a "search" HTML5 input?


More From » angular

 Answers
3
 <input type=search (search)=search()>

[#58661] Friday, March 3, 2017, 7 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
kinsley

Total Points: 352
Total Questions: 84
Total Answers: 94

Location: Denmark
Member since Tue, Jul 19, 2022
2 Years ago
;