selecting alternatives and similar libraries
Based on the "String" category.
Alternatively, view selecting alternatives based on common mentions on social networks and blogs.
-
underscore.string
String manipulation helpers for javascript -
sprintf.js
sprintf.js is a complete open source JavaScript sprintf implementation -
url-pattern
easier than regex string matching patterns for urls and other strings. turn strings into data or data into strings. -
HaikunatorJS
Generate Heroku-like random names to use in your node applications.
SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of selecting or a related project?
README
selecting
A library that allows you to access the text selected by the user.
Instalation
To install Selecting, execute:
npm install selecting
Or Bower too:
bower install selecting
Or simply pick up the file from src directory.
Supported Browsers
- Google Chrome
- Firefox
- Internet Explorer 9.0+
- Safari
- Opera
- iOS
- Android
How to use?
Selecting doesn't depend on jQuery, Zepto or any other library to work. You need just to include it at the end of your HTML code:
<script src="selecting.js"></script>
Then you can call window.selecting function passing two parameters: an DOM element (jQuery object or NodeList) to listen to and a callback function that receive a Selection object by parameter. For example:
window.selecting($('.container'), function(selector) {
// Properties
selector.text; // The selected text
selector.wordCount; // The number of words selected
});
Example
Contributors
@evandrolg | @felquis | @gibatronic |