Last Updated: February 25, 2016
·
406
· timpietrusky

_select().js

Extends the native JS select() so that it can be used to select the content of any DOM element:

Vanilla JS

_select(document.getElementsByClassName('demo6')[0]);

jQuery

_select($('.demo6)');

Live version on CodePen

_select().js on CodePen

Fork it on GitHub

_select on GitHub