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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Clicked item in AutoComplete visual mode

Thread ID:

Created:

Updated:

Platform:

Replies:

132089 Aug 13,2017 03:43 PM UTC Aug 14,2017 11:45 AM UTC Angular 1
loading
Tags: ejAutoCompleteTextBox
Marko
Asked On August 13, 2017 03:43 PM UTC

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

Arun Palaniyandi [Syncfusion]
Replied On 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.     


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;