Web Development with jQuery®

(Elliott) #1

628


APIs (application programming interfaces) – content manipulation

bindex.indd 02/20/2015 Page 628


APIs (application programming interfaces)
drag and drop, 279–280
Plugin, 243–247
Selectors, 28–33
append( ) method, 103, 108–111
appendChild( ) method, 248
appending content, 108–111
applyEventHandler method, 80
applyEvents( ) method, 316 –317
arrays, 102–103
enumeration, 135–139
fi ltering, 147–151
inArray( ) method, 158–160
makeArray( ) method, 157–158
mapping, 153–156
merging, 160 –162
utility methods, 156–162
values, fi nding, 158–160
attaching events, 68–69
attr( ) method, 33, 92–93, 96, 248
attributes
custom, methods and, 525–526
disabled, 41, 94
draggable, 288
methods and, 523–524
removing, 89–96
retrieving, 89–96
selectors, 495– 496
setting, 89–96
multiple, 96
audio
download control, 463–464
fallback, 461–462

B


before( ) method, 103, 111–112
behavior versus presentation, 10

bounce easing, 223–224
browser detection, 25

C


caching, client side, 14
callback functions, fi ltering selections, 146–147
cascading style sheets. See CSS
case keyword, 20
catch keyword, 20
child fi lters, selectors, 497–498
children( ) method, 45, 53
Chrome, 3
classes
class names, 11–12, 97–101
addClass( ) method, 101
hasClass( ) method, 101
methods and, 524
removeClass( ) method, 101
toggleClass( ) method, 102
pseudo-classes, 165
clearTimeout( ) method, 454
click( ) event, <input> element, 229
click( ) method, 32
click( ) wrapper method, 64–67
client-side caching, 14
clone( ) method, 130 –133
cloning content, 130 –133
collections
of elements, wrapping, 119
slideshows, 443
compression, 14–15
require.js, 24
content manipulation, 102–103
appending, 108 –111
cloning, 130 –133
elements, replacing, 123–126
HTML
setting, 104 –106

http://www.it-ebooks.info

Free download pdf