It is necessary with one click to make the onclick event work on several elements. The main problem is that you cannot use JS tools to simulate a click, it must be a user.
For example, it is necessary that four alerts with just one click work at once.
<p onclick='alert(1)'>text</p> <p onclick='alert(2)'>text</p> <p onclick='alert(3)'>text</p> <p onclick='alert(4)'>text</p> Perhaps the elements should have one class or be superimposed on each other? How to implement this?