Web Development with jQuery®
Using the Selectors API (^) ❘ 31 .addClass('exampleLinkAutoTarget'); break; } } } } ) } ); The preceding code, all put together, ...
(^32) ❘ CHAPTER 2 SELECTING AND FILTERING As I touched on briefl y in Chapter 1, jQuery provides its own event called ready, whi ...
Filtering a Selection (^) ❘ 33 Explorer 8 and earlier using jQuery 1.9; this event object is automatically patched by jQuery so ...
(^34) ❘ CHAPTER 2 SELECTING AND FILTERING do something more with it. You can do this with virtually any language, which is to sa ...
Filtering a Selection (^) ❘ 35 Of course, the concept of having unique id names is not something the browser can enforce; you mu ...
(^36) ❘ CHAPTER 2 SELECTING AND FILTERING to create a document that is the smallest it can be, while also being as programmatica ...
Filtering a Selection (^) ❘ 37 id='contactFirstName' name='contactFirstName' size='25' maxlength='50' required='required' /> ...
(^38) ❘ CHAPTER 2 SELECTING AND FILTERING var contactNewsletterForm = { ready : function() { $('input#contactNewsletterFormSubmi ...
Filtering a Selection (^) ❘ 39 contactNewsletterForm.ready(); } ); This form is then submitted to the following HTML page, calle ...
(^40) ❘ CHAPTER 2 SELECTING AND FILTERING In Example 2-2, you see one way you might use the find() method, to validate input for ...
Filtering a Selection (^) ❘ 41 Next, you disable the submit button so that the user cannot become impatient and click it repeate ...
(^42) ❘ CHAPTER 2 SELECTING AND FILTERING user did provide every required fi eld by assigning true to the variable hasRequiredVa ...
Filtering a Selection (^) ❘ 43 Iterating a Selection with each() and Testing for a Condition with is() Now that you have selecte ...
(^44) ❘ CHAPTER 2 SELECTING AND FILTERING if (node.is('[required]')) { In the context of this example, you just want to know whe ...
Filtering a Selection (^) ❘ 45 In this section, you got to know jQuery a little better with some in-depth explanations of and an ...
(^46) ❘ CHAPTER 2 SELECTING AND FILTERING jQuery provides no less than fi ve methods for discovering and working with an element ...
Filtering a Selection (^) ❘ 47 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 Th ...
(^48) ❘ CHAPTER 2 SELECTING AND FILTERING } table.calendarMonth { table-layout: fixed; width: 100%; height: 100%; border-collaps ...
Filtering a Selection (^) ❘ 49 'calendarEarlierThisWeek ' + 'calendarLaterThisWeek ' + 'calendarThisWeek' ); var yesterday = tod ...
(^50) ❘ CHAPTER 2 SELECTING AND FILTERING if (earlierThisWeek.length) { earlierThisWeek.addClass('calendarEarlierThisWeek'); } t ...
«
1
2
3
4
5
6
7
8
9
10
»
Free download pdf