添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
悲伤的熊猫  ·  d3.js v3 vs d3.js ...·  3 月前    · 
傲视众生的拐杖  ·  SyntheticEvent – React·  2 月前    · 
急躁的手套  ·  ondragover 事件 | ·  2 月前    · 
坚韧的椅子  ·  Plugins · Slate·  2 月前    · 
没有腹肌的自行车  ·  flatpickr ...·  3 年前    · 
不羁的手链  ·  python - what is the ...·  3 年前    · 

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

@Rahul..I want to fetch double click option value in myFunction() method in controller.how to get it. – SATYENDRA CHOUBEY Jan 3, 2019 at 9:41