Stack Exchange Network
Stack Exchange network consists of 183 Q&A communities including
Stack Overflow
, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack Exchange
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.
Sign up to join this community
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
<div id="div1" >
<label for="picklist">Available Labels</label> <br/>
<select style="width:100%" id="picklist" multiple="multiple" ondblclick="myFunction()">
<aura:iteration items="{!v.GenreList}" var="opts">
<option value="{!opts}"> {!opts.value} </option>
</aura:iteration>
</select>
ListBox.controller
myFunction: function(component, event, helper){
alert("hi");
var a= event.get("{!opts}");
alert(a);
when i double click on any options control is not going inside myFunction.
Double click handler on select tag should call client side controller function as ondblclick={!c.myFunction}".
Read more in Lightning Components Developer Guide: Handling Events with Client-Side Controllers
–