我有最近10个联系人的菜单列表,其中包含姓名和号码,没有导航链接(即。for(LoggingEvent loggingEvent : argumentCaptor.getAllValues()) {
System.out.println(loggingEvent.getMessage());
}
标签)
我希望通过双击选择名称或数字而不关闭菜单选项列表。这可能吗?
我使用<a href="javascript:void(0);"></a>
方法来阻止关闭菜单选项。如何通过双击选择文本?
答案 0 :(得分:0)
由于您没有提供任何代码,因此不确定您要完成的任务。但是根据你的要求,我认为你想要使用它。
document.getElementById("YourMenuID").getElementsByTagName("a").ondblclick = function(){
//request you value here
};