0.0.4 • Published 8 years ago
jquery-highlight-selection v0.0.4
jQuery Highlight Selection
Simple jQuery plugin to draw boxes around the items in the current jQuery collection.
Usage
$('div').highlightSelection();
// All div tags will now have a red box around them
$('li').highlightSelction();
// All li tags will now have a red box around them and the ones around div
// tags are removed
Configuration
$.fn.highlightSelection.defaults.border = "blue";
// border color will now be blue
$.fn.highlight.defaults.clearPreviousSelection = false;
// subsequent calls to highlight selection will no longer clear the old ones