jQuery

The Basic Idea

  1. Get a DOM element(s): $('li')
  2. Do something to it: $('li').css('color','red')
  3. Chain these: $('li').css('color','red').append('hello')
  4. $('a').click(function(){alert("Hi there")}): same goes for events

José M. Vidal .

2 of 11