The Absolutely Awesome jQuery CookBook

[Pages:67] The Absolutely Awesome

jQuery CookBook

(covers jQuery v1.11 or v2.1 & jQueryUI v1.11)

By Suprotim Agarwal

About the Author

Suprotim Agarwal, is an Architecture MVP (Microsoft Most Valuable Professional) and has been developing web applications for over 15 years using Microsoft and JavaScript technologies. Suprotim is also an author and founder of popular .NET websites like DotNetCurry and DevCurry and the Editor-in-Chief of the DNC .NET Magazine. His first book '51 Recipes with jQuery and Controls' was accepted very well by the developer community and he has been since then yearning to author new books.

When he is not churning out code, he spends his time with his family, checks out new gadgets, plays games on his Xbox One and teaches programming to kids.

About the Reviewer

Irvin Dominin works as Technical lead in SISTEMI S.p.A.(Turin, Italy) for .NET and Windows Projects. He is an active member on StackOverflow and spends most of his time answering jQuery/JavaScript questions. You can reach him at: irvin.dominin@ or on LinkedIn

Table Of Contents

Section I - Some Concepts

Recipe 1 Getting started with jQuery & jQuery UI3

Recipe 2 Using Content Delivery Network (CDN) 23

Recipe 3 Feature detection with Modernizr28

Recipe 4 bind() vs live() vs delegate() vs on() 32

Recipe 5 Getting started with $.ajax()46

Recipe 6 Exploring Mustache.js for Templating60

Recipe 7 Using jsPerf to Test jQuery Selectors69

Recipe 8 Important Concepts for jQuery Developers76

Section II - Input Controls

Recipe 9 Miscellaneous Input Control Operations88

Recipe 10 Clear all Form Fields102

Recipe 11 Detect if TextBox Contents Have Changed106

Recipe 12 Automatically add Commas to a Number110

Recipe 13 Allow only AlphaNumeric Values119

Recipe 14 Total the values of Multiple TextBoxes122

Recipe 15 Adding Watermark to a TextBox126

Recipe 16 TextBox AutoComplete131

Recipe 17 Select/Deselect All CheckBoxes138

Section III - Tables, Panels and Tabs

Recipe 18 Miscellaneous Table Operations146

Recipe 19 Reverse the Order of Table Rows157

Recipe 20 Add/Delete Rows in a Table161

Recipe 21 Show/Hide Columns using CheckBoxes171

Recipe 22 Show/Hide Columns using Header Index176

Recipe 23 Check All CheckBoxes in a Table181

Recipe 24 Dynamically Add Thousands of Rows185

Recipe 25 Add Sorting and Pagination to a Table192

Recipe 26 Performing Calculations in a Table206

Recipe 27 Filtering a Table213

Recipe 28 Display Master Details Records220

Recipe 29 Create a Testimonial Section225

Recipe 30 Create a Sliding Overlay Panel230

Recipe 31 Add Notifications to your site235

Recipe 32 Create a Simple FAQ Accordion246

Recipe 33 Using the jQuery UI Accordion250

Recipe 34 Extending the jQuery UI Accordion261

Recipe 35 Create a Simple Tab Control269

Recipe 36 Using the jQuery UI Tabs Widget275

Recipe 37 jQuery UI Tabs - Advanced Scenarios279

Section IV - Unordered List and DropDown Control

Recipe 38 Sort Unordered List Alphabetically292

Recipe 39 Search and Delete Duplicate Items297

Recipe 40 Populate DropDown using JavaScript Object301

Recipe 41 Create a MultiLevel DropDown List305

Recipe 42 Programmatically Select an Option311

Recipe 43 Move Items between MultiSelect Lists316

Section V - Menus and TreeView

Recipe 44 Creating a Simple Menu323

Recipe 45 Working with jQuery UI Menu327

Recipe 46 Disable Right Click Context Menu340

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download