Text with a Hair Trigger

I was digging for under-the-radar JavaScript projects this week when I came upon jquery.textSelect from James M. Greene. It’s a jQuery plugin that triggers a callback whenever you select the bound text.

It’s a neat hack and stepping stone for cool UI elements. If you’re looking for a weekend project, try building a reusable “tweet this” popup/widget for pull quotes and important passages.

Demo here, code below:


jquery.textSelect Demo

highlight or double click me

don't bother with me though


Join the discussion

2017 Neal Shyam