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
jquery.js
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
iank_meong
December 29, 2012
170
0
Share
jquery.js
mari sedikit bermain-main dengan javascript
iank_meong
December 29, 2012
More Decks by iank_meong
See All by iank_meong
presentasi fisika
iankmeong
0
180
meong45
iankmeong
0
120
Featured
See All Featured
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.1k
Practical Orchestrator
shlominoach
191
11k
Code Reviewing Like a Champion
maltzj
528
40k
Faster Mobile Websites
deanohume
310
31k
Building Adaptive Systems
keathley
44
3k
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
320
Bootstrapping a Software Product
garrettdimon
PRO
307
120k
Visualization
eitanlees
152
17k
The #1 spot is gone: here's how to win anyway
tamaranovitovic
2
1.1k
Designing for humans not robots
tammielis
254
26k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
180
Transcript
JQuery Ibnu Yahya <
[email protected]
>
Apa itu JQuery? • Javascript framework popular. • Menekankan bagaimana
interaksi pada javascript dan html. • Berisi kumpulan library javascript siap pakai. • Memudahkan proses development web application.
Mengapa JQuery? • Popular ◦ Google http://goo.gl/E7T3l ◦ http://trends.builtwith.com/javascript/jQuery •
Dukungan dokumentasi • API yang lengkap (api.jquery.com) • Dapat digunakan di desktop maupun mobile web application Flash Problem?
Bandingkan! Javascript yang diajarkan di sekolah
Bandingkan! JQuery Javascript
Konsep.... $(selector).action()
Selector • Selector Element ◦ $("div").action(); (javascript) ◦ <div></div> (html)
• Selector Class ◦ $(".saya").action(); (javascript) ◦ <div class="saya"></div> (html) • Selector ID ◦ $("#saya").action(); (javascript) ◦ <div id="saya"></div> (html) • Selector Attribute ◦ $("[attribute='value']").action(); (javascript) ◦ <div attribute="value"></div> (html)
Action (JQuery API) • Event (http://api.jquery.com/category/events/) ◦ .click() ◦ .dblclick()
◦ .blur() • Attributes (http://api.jquery.com/category/attributes/) ◦ .html() ◦ .attr() ◦ .val • ETC (selengkapnya : api.jquery.com)
Memulai Jquery <!DOCTYPE html> <head> <script type="text/javascript" scr="jquery.js"></script> <script> $(document).ready(function(){
//jquery code }); </script> </head> <body> </body> </html>
EXAMPLE <!DOCTYPE html> <head> <script type="text/javascript" scr="jquery.js"></script> <script> $(document).ready(function(){ $(".tambahtext").text("saya
menambahkan text"); }); </script> </head> <body> <div class="tambahtext"></div> </body> </html>
Pertanyaan?
Terima Kasih