_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
Fork it on GitHub
Written by Tim Pietrusky
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#_select
Authors
Related Tags
#_select
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#