jQuery Review

Exploring DOM Manipulation

Quick review

// Select element from the DOM
$('selector');

// Assign event
$('selector').on('specify-event', function(){});

// Create HTML element
var li = $('<li>');

// Add to page
$('ol').append(li);

// Or
li.appendTo($('ol'));

{fork and clone this repo!}

{start running a local server}

cd Desktop/jquery-demo
python -m SimpleHTTPServer 8080
# See page at localhost:8080

What we'll build

Assignments

CRUD Challenge (due before next class)

Made with Slides.com