Jquery - xuanz1993/JS GitHub Wiki
- How to interact with DOM with Jquery
- '$'
- .css('', '')
- .text()
- .html()
- .eq(1).attr('type','checkbox')
- .eq(0).value('new value')
- .addClass('turnRed)
- .reMoveClass()
- .toggleClass('turnBlue')
- Event
- click
$('h1').click(function(){$(this).text('I was changed!')})
- keypress
$('input').eq(0).keypress(function(){$('h3'.toggleClass('turnBlue'))})
- .on() == eventListener
- event animation