Web Development with jQuery®
Filtering a Selection (^) ❘ 51 FIGURE 2-3 Example 2-3 packs several concepts together to provide a more realistic example of how ...
(^52) ❘ CHAPTER 2 SELECTING AND FILTERING Next, you create a reusable function that sets up some metadata, mostly as an intellec ...
Filtering a Selection (^) ❘ 53 If a selection results in nothing, jQuery will return an empty array, and you can then check the ...
(^54) ❘ CHAPTER 2 SELECTING AND FILTERING the selection to the fi rst element of that row by calling eq(0). Zero, this time, re ...
Filtering a Selection (^) ❘ 55 .addClass('calendarThisWeek'); }; The exercise of sibling discovery that you underwent with the m ...
(^56) ❘ CHAPTER 2 SELECTING AND FILTERING That selection is then narrowed to exclude the elements that represent the remaining ...
Filtering a Selection (^) ❘ 57 The day is then assigned to selectedDay, where it will persist and remain until the next click ev ...
(^58) ❘ CHAPTER 2 SELECTING AND FILTERING setUpThisWeek(); } ); Finally, the last thing that you do within the anonymous functio ...
Adding to a Selection (^) ❘ 59 not include element #2 itself. So, this selection will include The Shire and Fangorn Forest. Addi ...
(^60) ❘ CHAPTER 2 SELECTING AND FILTERING $('ul#middleEarthPlaces li').add( document.getElementById('middleEarthMorePlaces').chi ...
Summary (^) ❘ 61 EXERCISES What other client-side technology does jQuery have a lot in common with in terms of its fi ne- grai ...
http://www.it-ebooks.info ...
Events jQuery offers a powerful and comprehensive event API. jQuery’s event API provides wrap- per methods that accommodate most ...
(^64) ❘ CHAPTER 3 EVENTS The jQuery 2.x branch does away with things such as legacy support for older versions of Internet Explo ...
The Various Event Wrapper Methods (^) ❘ 65 System Users The preceding HTML is styled with the following style she ...
(^66) ❘ CHAPTER 3 EVENTS background-size: 48px 48px; height: 56px; width: 54px; margin: 10px auto 3px auto; } div.finderIconSele ...
The Various Event Wrapper Methods (^) ❘ 67 FIGURE 3-1 Example 3-1 demonstrates a simple use of the click() method both to attach ...
(^68) ❘ CHAPTER 3 EVENTS element with class name finderIconSelected, and then you remove the finderIconSelected class name from ...
Attaching Persistent Event Handlers (^) ❘ 69 method that you’d use in JavaScript if you weren’t working with a JavaScript framew ...
(^70) ❘ CHAPTER 3 EVENTS Library Network Sites System Users index.html Departments.html D ...
«
1
2
3
4
5
6
7
8
9
10
»
Free download pdf