This chapter covers
- jQuery selectors
- DOM traversal and manipulation
- Attaching event handlers to DOM elements
- Event delegation
- Using custom events
7.1 Putting events(and more) to work
7.1.1 Filtering large data sets
7.1.2 Element creation by template replication
7.1.3 Setting up the mainline markup
7.1.4 Adding new filters
var movies;
$.getJSON('movies.json', function(data) {
movies = data;
$(document).trigger('moviesLoader');
});
$(document).on('moviesLoaded', function() {
//Business logic here
});
7.1.5 Adding the controls templates
7.1.6 Removing unwanted filters and other tasks
7.1.7 Showing the results
$.grep()