Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to get the text of a clicked elemet by javascript

$(document).click(function(event) {
    var text = $(event.target).text();
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #text #clicked #elemet #javascript
ADD COMMENT
Topic
Name
2+1 =