Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
A Brief Introduction to jQuery
Search
James Hughes
October 22, 2010
Programming
3
140
A Brief Introduction to jQuery
Old presentation from the archives.
James Hughes
October 22, 2010
Tweet
Share
More Decks by James Hughes
See All by James Hughes
Functional Programming with Clojure
kouphax
1
140
Tyrannosaurus Rx
kouphax
0
130
React
kouphax
2
740
Play for (Java|Scala)
kouphax
0
140
Devops: A Case Study
kouphax
0
92
Scala for C# Developers
kouphax
5
2.7k
Dropwizard - Production Ready Web Services
kouphax
3
1.6k
Scala for Fun & Profit
kouphax
4
650
What Agile Means To Me
kouphax
0
160
Other Decks in Programming
See All in Programming
AIによるイベントストーミング図からのコード生成 / AI-powered code generation from Event Storming diagrams
nrslib
2
1.9k
16年目のピクシブ百科事典を支える最新の技術基盤 / The Modern Tech Stack Powering Pixiv Encyclopedia in its 16th Year
ahuglajbclajep
5
1k
Apache Iceberg V3 and migration to V3
tomtanaka
0
160
Data-Centric Kaggle
isax1015
2
780
AI Agent の開発と運用を支える Durable Execution #AgentsInProd
izumin5210
7
2.3k
humanlayerのブログから学ぶ、良いCLAUDE.mdの書き方
tsukamoto1783
0
200
Claude Codeと2つの巻き戻し戦略 / Two Rewind Strategies with Claude Code
fruitriin
0
130
例外処理とどう使い分ける?Result型を使ったエラー設計 #burikaigi
kajitack
16
6.1k
Oxlintはいいぞ
yug1224
5
1.3k
Basic Architectures
denyspoltorak
0
680
副作用をどこに置くか問題:オブジェクト指向で整理する設計判断ツリー
koxya
1
610
Architectural Extensions
denyspoltorak
0
290
Featured
See All Featured
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
150
Test your architecture with Archunit
thirion
1
2.2k
Optimising Largest Contentful Paint
csswizardry
37
3.6k
Facilitating Awesome Meetings
lara
57
6.8k
Deep Space Network (abreviated)
tonyrice
0
49
A Soul's Torment
seathinner
5
2.3k
Unsuck your backbone
ammeep
671
58k
Utilizing Notion as your number one productivity tool
mfonobong
3
220
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
450
Principles of Awesome APIs and How to Build Them.
keavy
128
17k
YesSQL, Process and Tooling at Scale
rocio
174
15k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
410
Transcript
Introduc)on to jQuery
Overview
Overview
Non-‐Pollu)ng jQuery.noConflict();
Small Footprint ~ 19KB (Minified & Gzipped)
Cross Browser Compliant A+
Extensible
Selector Performance
Popularity (Support & Innova)on)
Simple Premise $(“#id”, “div.class”) .show() .$(…)
Chainability $(“#id”) .hide() .width(300) .fadeIn()
The jQuery Object
$(…) The jQuery Func)on
The API
Extending
Custom Filters /* * jQuery Input Modified
Filter */ $.extend($.expr[':'], { modified: func)on(el) { return $(el).is("input") && el.defaultValue != el.value; } }); /* Clear all modified input elements */ $("input:modified") .val(“”);
Custom Plugin /* * jQuery
Zebra Stripping Plugin */ jQuery.fn.zebra = funcQon(odd, even) { return this.find("tr:odd").css("background-‐color", odd) .end().find("tr:even").css("background-‐color", even); } //or $.fn.extend({ zebra : funcQon(){…} }) /* Apply Stripping to all tables in DOM */ $("table").zebra("#fff", "#eee");
Why jQuery?
vs.
vs.
vs.
vs.
vs.
None
None
Ques)ons?