Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
370
igCombo clear button event
posted

Is there a way to detect when the clear button (as defined by EnableClearButton set to true) in the combo box is clicked?

Parents
No Data
Reply
  • 2095
    Verified Answer
    posted

    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

    });

Children