Is there a way to detect when the clear button (as defined by EnableClearButton set to true) in the combo box is clicked?
Perfect, exactly what I was looking for.
Thanks.
Hi laf921@yahoo.com,
Thank you for posting in our community!
You can use jQuery "on" method and its delegating functionality. What does this mean - it means that you can set it as it is demonstrated below and if the clear button exists - the event will be fired. If not - nothing will happen.
Code:
$(combo-selector).on("click", ".ui-igcombo-clearicon" , function() {
// handle click here
});