$30 off During Our Annual Pro Sale. View Details »
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
730
Play for (Java|Scala)
kouphax
0
130
Devops: A Case Study
kouphax
0
89
Scala for C# Developers
kouphax
5
2.7k
Dropwizard - Production Ready Web Services
kouphax
3
1.6k
Scala for Fun & Profit
kouphax
4
640
What Agile Means To Me
kouphax
0
150
Other Decks in Programming
See All in Programming
Graviton と Nitro と私
maroon1st
0
130
組み合わせ爆発にのまれない - 責務分割 x テスト
halhorn
1
160
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
250
JETLS.jl ─ A New Language Server for Julia
abap34
2
440
LLM Çağında Backend Olmak: 10 Milyon Prompt'u Milisaniyede Sorgulamak
selcukusta
0
130
Cell-Based Architecture
larchanjo
0
140
Rubyで鍛える仕組み化プロヂュース力
muryoimpl
0
150
メルカリのリーダビリティチームが取り組む、AI時代のスケーラブルな品質文化
cloverrose
1
310
クラウドに依存しないS3を使った開発術
simesaba80
0
140
宅宅自以為的浪漫:跟 AI 一起為自己辦的研討會寫一個售票系統
eddie
0
520
Denoのセキュリティに関する仕組みの紹介 (toranoana.deno #23)
uki00a
0
140
Findy AI+の開発、運用におけるMCP活用事例
starfish719
0
1.6k
Featured
See All Featured
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.1k
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
RailsConf 2023
tenderlove
30
1.3k
Build The Right Thing And Hit Your Dates
maggiecrowley
38
3k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
34
Ruling the World: When Life Gets Gamed
codingconduct
0
93
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
48
9.8k
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
38
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
0
22
Designing for humans not robots
tammielis
254
26k
Typedesign – Prime Four
hannesfritz
42
2.9k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
0
230
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?