showing results for - "how to get the text of a clicked elemet by javascript"
Fares
08 Oct 2016
1document.addEventListener('click', function(e) {
2    e = e || window.event;
3    var target = e.target || e.srcElement,
4        text = target.textContent || target.innerText;   
5}, false);
Tatiana
19 Sep 2019
1$(document).click(function(event) {
2    var text = $(event.target).text();
3});