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
140
3
Share
A Brief Introduction to jQuery
Old presentation from the archives.
James Hughes
October 22, 2010
More Decks by James Hughes
See All by James Hughes
Functional Programming with Clojure
kouphax
1
150
Tyrannosaurus Rx
kouphax
0
140
React
kouphax
2
750
Play for (Java|Scala)
kouphax
0
150
Devops: A Case Study
kouphax
0
100
Scala for C# Developers
kouphax
5
2.7k
Dropwizard - Production Ready Web Services
kouphax
3
1.7k
Scala for Fun & Profit
kouphax
4
660
What Agile Means To Me
kouphax
0
170
Other Decks in Programming
See All in Programming
密結合なバックエンドから TypeScript のコードを生成する
kemuridama
1
360
OCRを使ってゲームのアイテムをデータ化する
kishikawakatsumi
0
120
ふつうのFeature Flag実践入門
irof
6
2.9k
AI駆動開発で崩れていくコードベースを立て直す
kyoko_nr_nr
1
380
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
220
ReactとSvelteのその先、Ripple-TS / Beyond React and Svelte: Ripple-TS
ssssota
3
850
プロパティの順序で型推論が壊れる!? TypeScript6.0の修正からContext-Sensitivityの仕組みを追う
bicstone
2
1.1k
The Arts and Crafts of Work in the AI Era — Toward Mastery in Software Development
kuranuki
0
450
デフォルト運用のCodeRabbit、1年で何が変わったか / How CodeRabbit Changed Our Code Review in 1 Year
bake0937
1
110
バックエンドにElysiaJSを採用して気付いた、良い点・悪い点
wanko_it
1
180
1人1案件のプロダクトエンジニア時代に、"プロセス監督"としてチャレンジしたこと
non0113
0
330
AIエージェントの隔離技術の徹底比較
kawayu
0
430
Featured
See All Featured
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
210
Making Projects Easy
brettharned
120
6.6k
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
130
Building an army of robots
kneath
306
46k
A designer walks into a library…
pauljervisheath
211
24k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
61
44k
Joys of Absence: A Defence of Solitary Play
codingconduct
1
380
How GitHub (no longer) Works
holman
316
150k
Building Applications with DynamoDB
mza
96
7k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
49
9.9k
The Limits of Empathy - UXLibs8
cassininazir
1
340
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
1
2.7k
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?