SlideShare ist ein Scribd-Unternehmen logo
1 von 24
Downloaden Sie, um offline zu lesen


♥













<script>
<script src="http://code.jquery.com/jquery-latest.js"></script>
jQuery
<script>
$('body').fadeOut();
</script>
$
$('img').hide();
$(':link').attr('target', '_blank');
$('h1').css('font-size', '72px');
('selector').action();
$('selector').action();


body {font-family: serif;}
img.thumbnail {margin: 20px;}
#topHeading {font-size: xx-large;}
jQuery‫מאפשרת‬
document.getElementById('myHeading')
$('#topHeading')
<body>
<ul>
<li><a href="http://google.com">Google</a></li>
<li><a href="details.pdf">Download PDF</a></li>
<li><a href="http://reallygood.co.il">Really Good</a></li>
</ul>
<a href="#top">This link is unrelated</a>
</body>
ali -> ali a
<body>
<ul id="nav">
<li><a href="http://google.com">Google</a></li>
<li><a href="details.pdf">Download PDF</a></li>
<li><a href="http://reallygood.co.il">Really Good</a></li>
</ul>
<ul><li>This list is unrelated</li></ul>
</body>
ul a#navul#nav aul #nav a
<body>
<ul id="nav">
<li><a href="http://google.com">Google</a></li>
<li><a href="details.pdf">Download PDF</a></li>
<li><a href="http://reallygood.co.il">Really Good</a></li>
</ul>
</body>
a:linkul > ali [href]
$('selector').action();
‫המלאה‬ ‫הרשימה‬←
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script>
$('h1').css('color', 'red'); // h1 tag doesn't exist yet
</script>
<h1>Doing it wrong</h1>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script>
$(document).ready(function(){
$('h1').css('color', 'red');
});
</script>
<h1>This is better</h1>


$('table#Top100Bands').dataTable();
Var myFlux = $('#slider').flux({
autoplay: false,
transitions: ['warp', 'bars3d']
});

$('selector').action();
jQuery

 $('<div>Any HTML can go here</div>'); // Creates HTML elements
 $(document.getElementByTagName('p')); // Wraps DOM elements with $
 $([4, 8, 15, 16, 23, 42]); // Any array or object
 $(function(){}); // Any function, same as $(document).ready(...)







jQuery

$('h1').css('color');
$('h1').css('color', 'red');


$(':password').addClass('error').val('').first().focus();
‫נראה‬ ‫זה‬ ‫ככה‬←
http://api.jquery.com/
http://try.jquery.com/
http://learnjquery.tutsplus.com/
http://www.unheap.com/
להכיר ולחשוב jQuery

Weitere ähnliche Inhalte

Andere mochten auch

Ziemeļvalstu bibliotēku nedēļa prezentacija md
Ziemeļvalstu bibliotēku nedēļa prezentacija mdZiemeļvalstu bibliotēku nedēļa prezentacija md
Ziemeļvalstu bibliotēku nedēļa prezentacija mdRozes bibliotēka
 
気楽に等身大☆初めての機械学習
気楽に等身大☆初めての機械学習気楽に等身大☆初めての機械学習
気楽に等身大☆初めての機械学習Mika Fukushige
 
Human resource planing
Human resource planingHuman resource planing
Human resource planingNisarg Shah
 
120627 - Isn’t it time to make strategy work ? Strategy Deployment Services p...
120627 - Isn’t it time to make strategy work ? Strategy Deployment Services p...120627 - Isn’t it time to make strategy work ? Strategy Deployment Services p...
120627 - Isn’t it time to make strategy work ? Strategy Deployment Services p...Thibaut De Vylder
 
121211 depfac ulb_master_presentation_v5_1
121211 depfac ulb_master_presentation_v5_1121211 depfac ulb_master_presentation_v5_1
121211 depfac ulb_master_presentation_v5_1Thibaut De Vylder
 
data-driven PMO : How to unlock value from your PMO
data-driven PMO : How to unlock value from your PMOdata-driven PMO : How to unlock value from your PMO
data-driven PMO : How to unlock value from your PMOThibaut De Vylder
 
130625 How to boost your PMO with the right information?- Tue 25th of June i...
130625  How to boost your PMO with the right information?- Tue 25th of June i...130625  How to boost your PMO with the right information?- Tue 25th of June i...
130625 How to boost your PMO with the right information?- Tue 25th of June i...Thibaut De Vylder
 

Andere mochten auch (9)

Ziemeļvalstu bibliotēku nedēļa prezentacija md
Ziemeļvalstu bibliotēku nedēļa prezentacija mdZiemeļvalstu bibliotēku nedēļa prezentacija md
Ziemeļvalstu bibliotēku nedēļa prezentacija md
 
Rolex 4
Rolex 4Rolex 4
Rolex 4
 
Damco Turkey
Damco TurkeyDamco Turkey
Damco Turkey
 
気楽に等身大☆初めての機械学習
気楽に等身大☆初めての機械学習気楽に等身大☆初めての機械学習
気楽に等身大☆初めての機械学習
 
Human resource planing
Human resource planingHuman resource planing
Human resource planing
 
120627 - Isn’t it time to make strategy work ? Strategy Deployment Services p...
120627 - Isn’t it time to make strategy work ? Strategy Deployment Services p...120627 - Isn’t it time to make strategy work ? Strategy Deployment Services p...
120627 - Isn’t it time to make strategy work ? Strategy Deployment Services p...
 
121211 depfac ulb_master_presentation_v5_1
121211 depfac ulb_master_presentation_v5_1121211 depfac ulb_master_presentation_v5_1
121211 depfac ulb_master_presentation_v5_1
 
data-driven PMO : How to unlock value from your PMO
data-driven PMO : How to unlock value from your PMOdata-driven PMO : How to unlock value from your PMO
data-driven PMO : How to unlock value from your PMO
 
130625 How to boost your PMO with the right information?- Tue 25th of June i...
130625  How to boost your PMO with the right information?- Tue 25th of June i...130625  How to boost your PMO with the right information?- Tue 25th of June i...
130625 How to boost your PMO with the right information?- Tue 25th of June i...
 

להכיר ולחשוב jQuery