DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
2+1 =
Submit