For a simple two buttons like those
<button id="right" type="button">SWIPE RIGHT</button>
<button id="left" type="button">SWIPE LEFT</button>
How can i use JQuery or JavaScript to trigger a click on a button document.getElementById('#id').click(); When i swipe left or right.
And is that possible using PHP?