<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>jQuery Tutorials for Beginners</title>
	<atom:link href="http://www.jquerytutorialsforbeginners.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jquerytutorialsforbeginners.com</link>
	<description>Learn jQuery from scratch with FREE video tutorials</description>
	<lastBuildDate>Tue, 28 Jun 2011 15:03:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Lesson 5: Adding and Removing CSS Classes With jQuery</title>
		<link>http://www.jquerytutorialsforbeginners.com/adding-removing-classes/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=adding-removing-classes</link>
		<comments>http://www.jquerytutorialsforbeginners.com/adding-removing-classes/#comments</comments>
		<pubDate>Tue, 28 Jun 2011 14:59:40 +0000</pubDate>
		<dc:creator>Niall Doherty</dc:creator>
				<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.jquerytutorialsforbeginners.com/?p=213</guid>
		<description><![CDATA[In this tutorial, we&#8217;ll see how you can easily add and remove CSS classes with jQuery. Video highlights [0:47] The setup (grab lorem ipsum from here) [1:24] The directory structure we&#8217;re using [2:00] Going through our starting source code [3:47] What comes first, .css files or .js files? (detailed explanation here) [4:19] Writing our CSS &#8230; <a href="http://www.jquerytutorialsforbeginners.com/adding-removing-classes/">Read more <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>In this tutorial, we&#8217;ll see how you can easily add and remove CSS classes with jQuery.</p>
<p><a href="http://www.jquerytutorialsforbeginners.com/adding-removing-classes/"><em>Click here to view the embedded video.</em></a></p>
<h3>Video highlights</h3>
<p>[0:47] The setup (grab lorem ipsum from <a href="http://www.lipsum.com/feed/html" target="_blank">here</a>)<br />
[1:24] The directory structure we&#8217;re using<br />
[2:00] Going through our starting source code<br />
[3:47] What comes first, .css files or .js files? (detailed explanation <a href="http://code.google.com/speed/articles/include-scripts-properly.html" target="_blank">here</a>)<br />
[4:19] Writing our CSS code (simple p.highlight class)<br />
[5:30] On click, add the highlight class to every paragraph on the page<br />
[6:15] Highlighting only the second paragraph on the page (with some trial and error)<br />
[7:48] Adding multiple classes with one click<br />
[8:36] Using jQuery&#8217;s .css method to achieve the same effect<br />
[10:58] On click, remove the highlight class<br />
[11:49] On click, toggle the highlight class<br />
[12:33] Simple examples, lots of potential</p>
<h3>Source code</h3>
<p>Here&#8217;s the final source code we end up with in the video, with the link adding and removing the highlight class from the second paragraph:</p>
<pre class="brush: xml;">
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;

&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;en&quot; lang=&quot;en&quot;&gt;

&lt;head&gt;

	&lt;title&gt;jQuery Test&lt;/title&gt;

	&lt;script type=&quot;text/javascript&quot; src=&quot;javascripts/jquery-1.6.1.min.js&quot;&gt;&lt;/script&gt;

	&lt;script type=&quot;text/javascript&quot;&gt;

		$(document).ready(function(){

			$(&quot;a&quot;).click(function(event){

				$(&quot;p:eq(1)&quot;).toggleClass(&quot;highlight&quot;);
				event.preventDefault();

			});

		});

	&lt;/script&gt;

	&lt;style type=&quot;text/css&quot;&gt;

		p.highlight { background: #ffff99 }

	&lt;/style&gt;

&lt;/head&gt;

&lt;body&gt;

	&lt;p&gt;&lt;a href=&quot;#&quot;&gt;Do something funky&lt;/a&gt;&lt;/p&gt;

	&lt;p&gt;
		Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla ac magna purus, a aliquam erat.
		Duis libero neque, fringilla quis scelerisque in, auctor nec tortor. Mauris blandit blandit
		enim et lobortis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per
		inceptos himenaeos. Vivamus id tellus eu quam scelerisque iaculis. Fusce luctus tellus orci,
		sed iaculis nibh.
	&lt;/p&gt;
	&lt;p&gt;
		Maecenas luctus velit sit amet magna vehicula convallis. Curabitur tellus turpis, condimentum
		ac pellentesque vel, lacinia in odio. Sed cursus hendrerit eros, vitae semper dui fermentum a.
		Sed a neque sit amet tellus laoreet auctor non et nulla. Etiam neque erat, facilisis at
		dignissim et, faucibus ac libero. Suspendisse eget risus erat, bibendum pharetra elit.
	&lt;/p&gt;

&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>And here&#8217;s the jQuery snippet we used to create the same on-click effect without the use of CSS:</p>
<pre class="brush: jscript;">
	$(&quot;a&quot;).click(function(event){

		$(&quot;p:eq(1)&quot;).css({background:&quot;#ffff99&quot;, fontWeight:&quot;bold&quot;});
		event.preventDefault();

	});
</pre>
<p>All good? Let me know in the comments if you have any questions.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jquerytutorialsforbeginners.com/adding-removing-classes/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Lesson 4: jQuery Events</title>
		<link>http://www.jquerytutorialsforbeginners.com/events/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=events</link>
		<comments>http://www.jquerytutorialsforbeginners.com/events/#comments</comments>
		<pubDate>Mon, 27 Jun 2011 12:21:10 +0000</pubDate>
		<dc:creator>Niall Doherty</dc:creator>
				<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.jquerytutorialsforbeginners.com/?p=199</guid>
		<description><![CDATA[In this tutorial, we&#8217;ll look at how to use jQuery events, such as click and hover. Video highlights [1:10] Creating a link to click [2:20] Coding a jQuery click event [3:35] Testing the click event [3:50] Disabling the default click behavior (return false) [4:30] Using preventDefault instead of return false (learn why here) [6:25] More &#8230; <a href="http://www.jquerytutorialsforbeginners.com/events/">Read more <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>In this tutorial, we&#8217;ll look at how to use jQuery events, such as click and hover.</p>
<p><a href="http://www.jquerytutorialsforbeginners.com/events/"><em>Click here to view the embedded video.</em></a></p>
<h3>Video highlights</h3>
<p>[1:10] Creating a link to click<br />
[2:20] Coding a jQuery <em>click</em> event<br />
[3:35] Testing the click event<br />
[3:50] Disabling the default click behavior (return false)<br />
[4:30] Using preventDefault instead of return false (<a href="http://fuelyourcoding.com/jquery-events-stop-misusing-return-false/" target="_blank">learn why here</a>)<br />
[6:25] More jQuery events (<a href="http://api.jquery.com/category/events/" target="_blank">see the full list on jQuery.com</a>)<br />
[6:55] Demonstrating the <em>hover</em> event<br />
[7:31] Demonstrating the <em>mousetover</em> event</p>
<h3>Source code</h3>
<p>Here&#8217;s the final source code for our <strong>click</strong> event, using preventDefault:</p>
<pre class="brush: xml;">
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;

&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;en&quot; lang=&quot;en&quot;&gt;

&lt;head&gt;

  &lt;title&gt;jQuery Test&lt;/title&gt;

  &lt;script type=&quot;text/javascript&quot; src=&quot;javascripts/jquery-1.6.1.min.js&quot;&gt;&lt;/script&gt;

  &lt;script type=&quot;text/javascript&quot;&gt;

    $(document).ready(function(){

      $(&quot;a&quot;).click(function(event){

        alert(&quot;You clicked the link!&quot;);
        event.preventDefault();

      });

    });

  &lt;/script&gt;

&lt;/head&gt;

&lt;body&gt;

 &lt;p&gt;Look at me. I'm learning jQuery.&lt;/p&gt;

 &lt;ul&gt;
   &lt;li&gt;&lt;a href=&quot;http://www.google.com&quot;&gt;First item&lt;/a&gt;&lt;/li&gt;
   &lt;li&gt;Second item&lt;/li&gt;
 &lt;/ul&gt;

&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>And here are the relevant jQuery snippets for the <strong>hover</strong> and <strong>mouseover</strong> events in the tutorial:</p>
<pre class="brush: jscript;">
      $(&quot;a&quot;).hover(function(){

        alert(&quot;You hovered over the link!&quot;);

      });
</pre>
<pre class="brush: jscript;">
      $(&quot;a&quot;).mouseover(function(){

        alert(&quot;You mouseover'd the link!&quot;);

      });
</pre>
<p>Mouseover&#8217;d? Sure, that&#8217;s a word.</p>
<p>Let me know in the comments if you have any questions.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jquerytutorialsforbeginners.com/events/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lesson 3: The Difference Between Internal, External, and Inline Scripting</title>
		<link>http://www.jquerytutorialsforbeginners.com/internal-external-inline/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=internal-external-inline</link>
		<comments>http://www.jquerytutorialsforbeginners.com/internal-external-inline/#comments</comments>
		<pubDate>Mon, 27 Jun 2011 10:07:31 +0000</pubDate>
		<dc:creator>Niall Doherty</dc:creator>
				<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.jquerytutorialsforbeginners.com/?p=191</guid>
		<description><![CDATA[In the following tutorial, we&#8217;ll run through the different ways you can have your jQuery code. Video highlights [0:34] Similarities with CSS [1:03] Internal scripting (often better for development) [2:10] External scripting (best for production) [4:23] Inline scripting (don&#8217;t do this!) [7:49] The ideal setup [8:51] Recommended site for learning CSS: w3schools.com Source code Here&#8217;s &#8230; <a href="http://www.jquerytutorialsforbeginners.com/internal-external-inline/">Read more <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>In the following tutorial, we&#8217;ll run through the different ways you can have your jQuery code.</p>
<p><a href="http://www.jquerytutorialsforbeginners.com/internal-external-inline/"><em>Click here to view the embedded video.</em></a></p>
<h3>Video highlights</h3>
<p>[0:34] Similarities with CSS<br />
[1:03] Internal scripting (often better for development)<br />
[2:10] External scripting (best for production)<br />
[4:23] Inline scripting (don&#8217;t do this!)<br />
[7:49] The ideal setup<br />
[8:51] Recommended site for learning CSS: <a href="http://www.w3schools.com/" target="_blank">w3schools.com</a></p>
<h3>Source code</h3>
<p>Here&#8217;s the <strong>internal</strong> example from the tutorial. Note that all our own jQuery code is in the &lt;head&gt; of the HTML document (lines 11-19).</p>
<pre class="brush: xml;">
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;

&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;en&quot; lang=&quot;en&quot;&gt;

&lt;head&gt;

  &lt;title&gt;jQuery Test&lt;/title&gt;

  &lt;script type=&quot;text/javascript&quot; src=&quot;javascripts/jquery-1.6.1.min.js&quot;&gt;&lt;/script&gt;

  &lt;script type=&quot;text/javascript&quot;&gt;

    $(document).ready(function(){

      alert(&quot;I'm working!&quot;);

    });

  &lt;/script&gt;

&lt;/head&gt;

&lt;body&gt;

 &lt;p&gt;Look at me. I'm learning jQuery.&lt;/p&gt;

&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>Now here&#8217;s the <strong>external</strong> example from the tutorial. First we have <strong>index.html</strong>, which calls both the jQuery core file (line 9), and our newly-created <strong>custom.js</strong> file (line 10) from the &lt;head&gt;:</p>
<pre class="brush: xml;">
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;

&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;en&quot; lang=&quot;en&quot;&gt;

&lt;head&gt;

  &lt;title&gt;jQuery Test&lt;/title&gt;

  &lt;script type=&quot;text/javascript&quot; src=&quot;javascripts/jquery-1.6.1.min.js&quot;&gt;&lt;/script&gt;
  &lt;script type=&quot;text/javascript&quot; src=&quot;javascripts/custom.js&quot;&gt;&lt;/script&gt;

&lt;/head&gt;

&lt;body&gt;

 &lt;p&gt;Look at me. I'm learning jQuery.&lt;/p&gt;

&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>And here&#8217;s the code we have housed in the <strong>custom.js</strong> file:</p>
<pre class="brush: jscript;">
    $(document).ready(function(){

      alert(&quot;I'm working!&quot;);

    });
</pre>
<p>As for the <strong>inline</strong> example, I&#8217;m not even going to provide the code here since it has no practical use <img src='http://www.jquerytutorialsforbeginners.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Any questions? Let me know in the comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jquerytutorialsforbeginners.com/internal-external-inline/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lesson 2: Installing and Using jQuery</title>
		<link>http://www.jquerytutorialsforbeginners.com/installing-and-using-jquery/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=installing-and-using-jquery</link>
		<comments>http://www.jquerytutorialsforbeginners.com/installing-and-using-jquery/#comments</comments>
		<pubDate>Fri, 24 Jun 2011 14:51:40 +0000</pubDate>
		<dc:creator>Niall Doherty</dc:creator>
				<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.jquerytutorialsforbeginners.com/?p=180</guid>
		<description><![CDATA[In the following tutorial, you&#8217;ll learn how to install jQuery and get some very simple code working. Video highlights [0:37] Folder structure I use for the demo [1:00] Opening index.html in a text editor (I use TextWrangler. If you&#8217;re on Windows, try Notepad++) [1:37] Downloading jQuery, and the difference between production and development versions [3:05] &#8230; <a href="http://www.jquerytutorialsforbeginners.com/installing-and-using-jquery/">Read more <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>In the following tutorial, you&#8217;ll learn how to install jQuery and get some very simple code working.</p>
<p><a href="http://www.jquerytutorialsforbeginners.com/installing-and-using-jquery/"><em>Click here to view the embedded video.</em></a></p>
<h3>Video highlights</h3>
<p>[0:37] Folder structure I use for the demo<br />
[1:00] Opening index.html in a text editor (I use <a href="http://www.barebones.com/products/textwrangler/" target="_blank">TextWrangler</a>. If you&#8217;re on Windows, try <a href="http://notepad-plus-plus.org/" target="_blank">Notepad++</a>)<br />
[1:37] Downloading jQuery, and the difference between production and development versions<br />
[3:05] Calling the jQuery core file from index.html<br />
[4:49] Writing a simple alert to confirm jQuery is working<br />
[5:55] Fixing an error, and getting the alert working<br />
[6:39] (document).ready alternatives<br />
[7:10] When to use (window).load<br />
[8:36] Using a jQuery CDN to host your core file (info and how-to on <a rel="nofollow" href="http://www.jquerycdn.net" target="_blank">jquerycdn.net</a>)<br />
[9:33] How to comment out a line of jQuery code</p>
<h3>Source code</h3>
<p>Here is the final <strong>index.html code</strong> from the tutorial:</p>
<pre class="brush: xml;">
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;

&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;en&quot; lang=&quot;en&quot;&gt;

&lt;head&gt;

  &lt;title&gt;jQuery Test&lt;/title&gt;

  &lt;script type=&quot;text/javascript&quot; src=&quot;javascripts/jquery-1.6.1.min.js&quot;&gt;&lt;/script&gt;

  &lt;script type=&quot;text/javascript&quot;&gt;

    $(document).ready(function(){

      alert(&quot;I'm working!&quot;);

    });

  &lt;/script&gt;

&lt;/head&gt;

&lt;body&gt;

 &lt;p&gt;Look at me. I'm learning jQuery.&lt;/p&gt;

&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>Here are the <strong>abbreviated versions of (document).ready</strong>:</p>
<pre class="brush: jscript;">
    $().ready(function(){
      alert(&quot;No need to write document!&quot;);
    });
</pre>
<pre class="brush: jscript;">
    $(function(){
      alert(&quot;No need to write ready either!&quot;);
    });
</pre>
<p>And finally, <strong>(window).load</strong>:</p>
<pre class="brush: jscript;">
    $(window).load(function(){
      alert(&quot;I'll only show once the entire page has finished loading.&quot;);
    });
</pre>
<p>Any questions? Let me know in the comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jquerytutorialsforbeginners.com/installing-and-using-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lesson 1: What is jQuery?</title>
		<link>http://www.jquerytutorialsforbeginners.com/what-is-jquery/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=what-is-jquery</link>
		<comments>http://www.jquerytutorialsforbeginners.com/what-is-jquery/#comments</comments>
		<pubDate>Thu, 23 Jun 2011 12:29:15 +0000</pubDate>
		<dc:creator>Niall Doherty</dc:creator>
				<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.jquerytutorialsforbeginners.com/?p=174</guid>
		<description><![CDATA[In the following tutorial, you&#8217;ll learn what jQuery is and see a few nifty examples of use. Video highlights [0:32] What the hell is JavaScript? [0:45] Where JavaScript fits in with HTML and CSS [1:29] What is jQuery? [2:33] jQuery in use on Amazon.com [3:57] jQuery in use on Twitter [4:50] Other power players that &#8230; <a href="http://www.jquerytutorialsforbeginners.com/what-is-jquery/">Read more <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>In the following tutorial, you&#8217;ll learn what jQuery is and see a few nifty examples of use.</p>
<p><a href="http://www.jquerytutorialsforbeginners.com/what-is-jquery/"><em>Click here to view the embedded video.</em></a></p>
<h3>Video highlights</h3>
<p>[0:32] What the hell is JavaScript?<br />
[0:45] Where JavaScript fits in with HTML and CSS<br />
[1:29] What is jQuery?<br />
[2:33] jQuery in use on Amazon.com<br />
[3:57] jQuery in use on Twitter<br />
[4:50] Other power players that use jQuery<br />
[5:07] <a href="http://www.komodomedia.com/" target="_blank">Komodo Media</a>&#8216;s foliage-o-meter<br />
[5:46] Subtle nav fade-in/fade-out on <a href="http://www.brightcreative.com/portfolio/" target="_blank">Bright Creative<br />
</a>[6:12] <a href="http://d2o0t5hpnwv4c1.cloudfront.net/041_TopPanelWithJquery/demo/index.html#" target="_blank">Sliding panel</a> from Net Tuts (see the associated tutorial <a href="http://net.tutsplus.com/tutorials/javascript-ajax/build-a-top-panel-with-jquery/" target="_blank">here</a>)<br />
[6:48] <a href="http://www.experiencialecom.com.br/experiencialecom/Portugues/" target="_blank">Eco Lecom</a>&#8216;s sliding website (built with <a title="Coda-Slider jQuery plugin" href="http://www.ndoherty.biz/demos/coda-slider/2.0/" target="_blank">Coda-Slider</a>)<br />
[7:53] Other great things about jQuery</p>
<p>&#8230;</p>
<p>Any questions? Let me know in the comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jquerytutorialsforbeginners.com/what-is-jquery/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

