🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

GetWordByEvent is a jQuery plugin which allows the user to pick up a single word within a specific element by custom events (click, hover or right-click).

word-picker

Documentation

GetWordByEvent jQuery plugin

This plugin allows to get the word under cursor

Require: jQuery 1.7+

install

Include jQuery and plugin JavaScript files:

<script type="text/javascript" src="http://code.jquery.com/jquery-1.10.1.min.js"></script> <script type="text/javascript" src="jquery.get-word-by-event.js"></script>

example

$('p').getWordByEvent('click', function(e, word) {     alert('You have clicked "' + word + '" word') });

You May Also Like