jquery-like dom manipulation. Tiny (1kb minified & gzipped)
$ component install matthewmueller/helix
$ make clean && make
$ xdg-open test/test.html
Create a Helix instance.
var $ = Helix(document.getElementById('person'));
Select an element.
$('.name')
$('#nav')
Get and set attributes that are on the selected element.
<input class="user" id="user" type="text" name="user">
$('.user').type('radio').name('person')
$('.user').type() // radio
Get and set text
$('.name').text('Matt')
$('.name').text() // Matt
Get and set HTML
$('.name').html('<strong>Matt</strong>')
$('.name').html() // <strong>Matt</strong>
Add a class
$('.name').addClass('person')
Remove a class
$('.name').removeClass('person')
Toggle a class
$('.name').toggle('person')
Get and set attribute that doesn't already exist
$('.name').attr('data-author', 'matt')
MIT