We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Clicked item in AutoComplete visual mode

Hi,

I have been trying AutoComplete component with VisualMode and I wonder if there is a way to detect click on item which has been already in input. For example I have this AutoComplete input:

and on item click it become selected:

so is there a way to catch this click and detect clicked item?

I will be greatfull for any help you can provide,
Marko

1 Reply

AP Arun Palaniyandi Syncfusion Team August 14, 2017 11:45 AM UTC


Hi Marko,   
  
Thanks for contacting Syncfusion Support.   
  
Query: ”Is there a way to catch this click and detect clicked item?”   
  
Yes, you can detect the clicked item by simply binding the jQuery click event to the li element. First. bind the click event for the li element’s class and then get the clicked element using the target argument of the click event.    
  
  
$(".e-ul.e-boxes").click(function(e){   
                 
                alert("Item : "+ e.target.innerText);   
                 
             });   
  
Sample for your reference: http://jsplayground.syncfusion.com/4hmsw5z5   

Also in our Autocomplete, the suggestion value is not repeated in the multiselect visualmode, if it is already selected.   

Please check the shared sample and information, and if the shared details still doesn’t meet your requirement, let us know.           
           
Regards,           
Arun P.     


Loader.
Live Chat Icon For mobile
Up arrow icon