How to ignore element click without using 'pointer-events' css property?

  • 0
    Let's say there is a 'select' form element. The button element is absolutely positioned above it. Is it possible with JavaScript to make a click on a button perceived by the browser as a click on the 'select' itself (to open or close a list of options)?
    JavaScript Amelia Lucas, Apr 26, 2020

  • 1 Answers
  • 0
    there is a variant with events

    elem.addEventListener ("click", () = & gt; {select.click ();}
    Anonymous

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!