Chapter 6 (^) ❘ 485
bapp01.indd 02/18/2015 Page 485
- remove()
- clone(true)
CHAPTER 5
- It might look like this:
$(nodes).each(
function() {
}
);
$.each(
nodes,
function() {
}
);- return false;
- The items referenced by the selector are kept in the selection; items not referenced by the
selector are discarded. - Keeps the current item in the selection; returning false removes the current item from the
selection. - A value that evaluates to true. Returning false will remove an item from the array.
- It replaces the value of the item passed to the callback function during that iteration.
- –1 means that the value does not exist within the array; a return value of zero or greater
means that the value exists within the array.
CHAPTER 6
- $('div').css('color');
- Specifying any color in the second argument, the code would look something like this:
$('body').css('backgroundColor', 'yellow');
$('div').css({
padding: '5px',
margin: '5px',
border: '1px solid grey'
});- outerWidth()
- outerHeight(true)