Skip to content

theAleksey/jquery.get-word-by-event

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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')
});

About

jQuery GetWordByEvent plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 51.2%
  • HTML 48.8%