Код: Выделить всё
button.attachEvent('onclick',function(e){
var currentDom = e.srcElement;
var point = document.elementsFromPoint(e.clientX, e.clientY);
if(point.tagName.toLowerCase() == 'select') {
point.focus()
// trigger select's dbclick function
.....
}
})
Код: Выделить всё
a
b
Подробнее здесь: https://stackoverflow.com/questions/791 ... ould-do-it
Мобильная версия