How can I use jQuery to detect click events as double-clicks? Basically, I want the text in the .select class to be easier to select so the user can quickly copy the contents to the clipboard.
<li>
<span>
Don't Select me
</span>
<span>
Don't Select me
</span>
<span class="select">
Select Me on click!
</span>
</li>
try this
Obtained from https://stackoverflow.com/a/987376/1330581
Example http://jsfiddle.net/edelman/KcX6A/339/
Update:
To select the content of the same clicked element:
The example: http://jsfiddle.net/qBaWf/