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
180
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
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
130
Featured
See All Featured
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
490
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.7k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3k
We Are The Robots
honzajavorek
0
310
GraphQLとの向き合い方2022年版
quramy
50
15k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
690
Building Adaptive Systems
keathley
44
3.2k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
230
23k
Building AI with AI
inesmontani
PRO
1
1.2k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
560
Art, The Web, and Tiny UX
lynnandtonic
304
22k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
3
1.1k
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