<?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>Phillip Napieralski &#187; jQuery</title>
	<atom:link href="http://blog.pnapieralski.com/category/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.pnapieralski.com</link>
	<description>Programmer, Engineer, Researcher.</description>
	<lastBuildDate>Tue, 20 Dec 2011 16:41:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Clear Default Input Box Text on Click with jQuery</title>
		<link>http://blog.pnapieralski.com/jquery/clear-default-input-box-text-on-click-with-jquery/</link>
		<comments>http://blog.pnapieralski.com/jquery/clear-default-input-box-text-on-click-with-jquery/#comments</comments>
		<pubDate>Sun, 21 Feb 2010 07:06:28 +0000</pubDate>
		<dc:creator>Phillip Napieralski</dc:creator>
				<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://blog.pnapieralski.com/?p=27</guid>
		<description><![CDATA[<a href="http://pnapieralski.com/tuts/jquery-3-searchclear" rel="shadowbox">Check out the demo</a>

You know those search boxes that say "search here" and you go to click them and the text goes away? It's a nice little feature and is really simple with jQuery.]]></description>
			<content:encoded><![CDATA[<p><a href="http://pnapieralski.com/tuts/jquery-3-searchclear" rel="shadowbox">Check out the demo</a></p>
<p>You know those search boxes that say &#8220;search here&#8221; and you go to click them and the text goes away? It&#8217;s a nice little feature and is really simple with jQuery.</p>
<p>Here is the simple script to take you through the ages:</p>
<h2>The HTML</h2>
<pre class="brush: xml; title: ; notranslate">
	&lt;form&gt;
		&lt;input type=&quot;text&quot; name=&quot;search&quot; id=&quot;search_box&quot; value=&quot;search here!&quot; /&gt;
		&lt;input type=&quot;submit&quot; value=&quot;Search&quot; /&gt;
	&lt;/form&gt;
</pre>
<p>Here we simply create a form with a textbox with an id of &#8220;search_box&#8221;. This id will help us reference it later with jQuery. ALSO take note that the <em>value</em> attribute is set to <b>search here!</b>.</p>
<h2>The jQuery</h2>
<p>Now simply place the following in your <em>&lt;head&gt;</em> tags and call it good.</p>
<pre class="brush: jscript; title: ; notranslate">
&lt;script type=&quot;text/javascript&quot;&gt;
  // Some simple jQuery to remove the default search value when the user clicks the box
  $(document).ready(function() {
	  	$search_box = $(&quot;#search_box&quot;);

	  	// If the user clicks the input box and the text is &quot;search here!&quot;,
	  	//    set it to blank
		$search_box.click(function() {
			if( $search_box.attr(&quot;value&quot;) == &quot;search here!&quot; ) {

				// Set it to an empty string
				$search_box.attr(&quot;value&quot;, &quot;&quot;);
			}
		});
  });
&lt;/script&gt;
</pre>
<p>That&#8217;s it! Basically, we find the search box by its id with <em>$(&#8220;#search_box&#8221;)</em> and then clear its value attribute if the string we compared to is the default search string</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://www.shareaholic.com/api/share/?title=Clear+Default+Input+Box+Text+on+Click+with+jQuery&amp;link=http://blog.pnapieralski.com/jquery/clear-default-input-box-text-on-click-with-jquery/&amp;notes=Check%20out%20the%20demo%0D%0A%0D%0AYou%20know%20those%20search%20boxes%20that%20say%20%22search%20here%22%20and%20you%20go%20to%20click%20them%20and%20the%20text%20goes%20away%3F%20It%27s%20a%20nice%20little%20feature%20and%20is%20really%20simple%20with%20jQuery.&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%2524%257Btitle%257D%2B-%2B%2524%257Bshort_link%257D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-digg">
			<a href="http://www.shareaholic.com/api/share/?title=Clear+Default+Input+Box+Text+on+Click+with+jQuery&amp;link=http://blog.pnapieralski.com/jquery/clear-default-input-box-text-on-click-with-jquery/&amp;notes=Check%20out%20the%20demo%0D%0A%0D%0AYou%20know%20those%20search%20boxes%20that%20say%20%22search%20here%22%20and%20you%20go%20to%20click%20them%20and%20the%20text%20goes%20away%3F%20It%27s%20a%20nice%20little%20feature%20and%20is%20really%20simple%20with%20jQuery.&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=3&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-reddit">
			<a href="http://www.shareaholic.com/api/share/?title=Clear+Default+Input+Box+Text+on+Click+with+jQuery&amp;link=http://blog.pnapieralski.com/jquery/clear-default-input-box-text-on-click-with-jquery/&amp;notes=Check%20out%20the%20demo%0D%0A%0D%0AYou%20know%20those%20search%20boxes%20that%20say%20%22search%20here%22%20and%20you%20go%20to%20click%20them%20and%20the%20text%20goes%20away%3F%20It%27s%20a%20nice%20little%20feature%20and%20is%20really%20simple%20with%20jQuery.&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-technorati">
			<a href="http://www.shareaholic.com/api/share/?title=Clear+Default+Input+Box+Text+on+Click+with+jQuery&amp;link=http://blog.pnapieralski.com/jquery/clear-default-input-box-text-on-click-with-jquery/&amp;notes=Check%20out%20the%20demo%0D%0A%0D%0AYou%20know%20those%20search%20boxes%20that%20say%20%22search%20here%22%20and%20you%20go%20to%20click%20them%20and%20the%20text%20goes%20away%3F%20It%27s%20a%20nice%20little%20feature%20and%20is%20really%20simple%20with%20jQuery.&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=10&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.shareaholic.com/api/share/?title=Clear+Default+Input+Box+Text+on+Click+with+jQuery&amp;link=http://blog.pnapieralski.com/jquery/clear-default-input-box-text-on-click-with-jquery/&amp;notes=Check%20out%20the%20demo%0D%0A%0D%0AYou%20know%20those%20search%20boxes%20that%20say%20%22search%20here%22%20and%20you%20go%20to%20click%20them%20and%20the%20text%20goes%20away%3F%20It%27s%20a%20nice%20little%20feature%20and%20is%20really%20simple%20with%20jQuery.&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.shareaholic.com/api/share/?title=Clear+Default+Input+Box+Text+on+Click+with+jQuery&amp;link=http://blog.pnapieralski.com/jquery/clear-default-input-box-text-on-click-with-jquery/&amp;notes=Check%20out%20the%20demo%0D%0A%0D%0AYou%20know%20those%20search%20boxes%20that%20say%20%22search%20here%22%20and%20you%20go%20to%20click%20them%20and%20the%20text%20goes%20away%3F%20It%27s%20a%20nice%20little%20feature%20and%20is%20really%20simple%20with%20jQuery.&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
</ul><div style="clear: both;"></div><div class="shr-getshr" style="visibility:hidden;font-size:10px !important"><a target="_blank" href="http://www.shareaholic.com/?src=pub">Get Shareaholic</a></div><div style="clear: both;"></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.pnapieralski.com/jquery/clear-default-input-box-text-on-click-with-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Design Your Site Around a jQuery UI Theme</title>
		<link>http://blog.pnapieralski.com/jquery/jquery-ui/design-your-site-around-a-jquery-ui-theme/</link>
		<comments>http://blog.pnapieralski.com/jquery/jquery-ui/design-your-site-around-a-jquery-ui-theme/#comments</comments>
		<pubDate>Sun, 31 Jan 2010 00:03:07 +0000</pubDate>
		<dc:creator>Phillip Napieralski</dc:creator>
				<category><![CDATA[jQuery UI]]></category>
		<category><![CDATA[Design]]></category>

		<guid isPermaLink="false">http://blog.pnapieralski.com/?p=10</guid>
		<description><![CDATA[I recently gave my <a href="http://pnapieralski.com">personal portfolio</a> an overhaul. 

I started with a preset jQueryUI theme hosted by Google and the end results look pretty good!]]></description>
			<content:encoded><![CDATA[<p>I recently gave my <a href="http://pnapieralski.com">personal portfolio</a> an overhaul. I did it on a whim after looking at the various preconstructed google hosted jQuery UI themes.</p>
<h2>Choosing a theme</h2>
<p>I wanted to add jQuery to my portfolio for some time, but I always hit a wall when I tried to roll my own theme. I&#8217;m just incredibly inexperienced at &#8220;what looks good.&#8221; Lucky for me, google has a nice selection of quality jQueryUI themes that you can directly link to on your site. </p>
<p><a href="http://www.stemkoski.com/jquery-ui-1-7-2-themes-list-at-google-code/">Check out this blog post</a> for an excellent list of themes to choose from.</p>
<h2>Adding it to your website</h2>
<p>I went with the Pepper Grinder theme for <a href="http://pnapieralski.com">my portfolio</a>. To add jQueryUI and the Pepper Grinder theme, I simply added the following lines between the <i>&lt;head&gt;</i> tags:</p>
<pre class="brush: jscript; title: ; notranslate">
&lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jqueryui/1.7/jquery-ui.min.js&quot;&gt;&lt;/script&gt;
&lt;link href=&quot;http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/pepper-grinder/jquery-ui.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;
</pre>
<p>Linking to the google hosted distributions has a serious advantage here: I&#8217;m saving bandwidth (not that it matters since DreamHost gives unlimited) and if someone comes to your profile after using these files from another website, it&#8217;s already cached!</p>
<h2>Designing your website around the theme</h2>
<p>I did almost zero work to get my website to match this theme. Here&#8217;s the key: the provided .css files also loads various .png files for the backgrounds used in the jQuery theme. </p>
<p>To find out what those files are, open up the .css file and do a search for &#8220;png.&#8221; At this point, I simply changed the background-image of each portion of my site until I got something that looked good (that&#8217;s pretty much it)! </p>
<h2>Advice</h2>
<p>A piece of advice I could give is to play with the jQuery theme quite a bit before delving into modifying your site. I loaded up the Pepper Grinder theme on my <a href="http://pnapieralski.com/projects.php">projects</a> page and played with it for a good 30 minutes to get a feel for the theme. For example, I simply copied the link colors from the google hosted .css file to use on my nav bar.</p>
<p>UPDATE: I further redesigned my portfolio website. Check out <a href="http://blog.pnapieralski.com/design/portfolio-redesign/">my post</a> on it.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://www.shareaholic.com/api/share/?title=Design+Your+Site+Around+a+jQuery+UI+Theme&amp;link=http://blog.pnapieralski.com/jquery/jquery-ui/design-your-site-around-a-jquery-ui-theme/&amp;notes=I%20recently%20gave%20my%20personal%20portfolio%20an%20overhaul.%20%0D%0A%0D%0AI%20started%20with%20a%20preset%20jQueryUI%20theme%20hosted%20by%20Google%20and%20the%20end%20results%20look%20pretty%20good%21&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%2524%257Btitle%257D%2B-%2B%2524%257Bshort_link%257D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-digg">
			<a href="http://www.shareaholic.com/api/share/?title=Design+Your+Site+Around+a+jQuery+UI+Theme&amp;link=http://blog.pnapieralski.com/jquery/jquery-ui/design-your-site-around-a-jquery-ui-theme/&amp;notes=I%20recently%20gave%20my%20personal%20portfolio%20an%20overhaul.%20%0D%0A%0D%0AI%20started%20with%20a%20preset%20jQueryUI%20theme%20hosted%20by%20Google%20and%20the%20end%20results%20look%20pretty%20good%21&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=3&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-reddit">
			<a href="http://www.shareaholic.com/api/share/?title=Design+Your+Site+Around+a+jQuery+UI+Theme&amp;link=http://blog.pnapieralski.com/jquery/jquery-ui/design-your-site-around-a-jquery-ui-theme/&amp;notes=I%20recently%20gave%20my%20personal%20portfolio%20an%20overhaul.%20%0D%0A%0D%0AI%20started%20with%20a%20preset%20jQueryUI%20theme%20hosted%20by%20Google%20and%20the%20end%20results%20look%20pretty%20good%21&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-technorati">
			<a href="http://www.shareaholic.com/api/share/?title=Design+Your+Site+Around+a+jQuery+UI+Theme&amp;link=http://blog.pnapieralski.com/jquery/jquery-ui/design-your-site-around-a-jquery-ui-theme/&amp;notes=I%20recently%20gave%20my%20personal%20portfolio%20an%20overhaul.%20%0D%0A%0D%0AI%20started%20with%20a%20preset%20jQueryUI%20theme%20hosted%20by%20Google%20and%20the%20end%20results%20look%20pretty%20good%21&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=10&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.shareaholic.com/api/share/?title=Design+Your+Site+Around+a+jQuery+UI+Theme&amp;link=http://blog.pnapieralski.com/jquery/jquery-ui/design-your-site-around-a-jquery-ui-theme/&amp;notes=I%20recently%20gave%20my%20personal%20portfolio%20an%20overhaul.%20%0D%0A%0D%0AI%20started%20with%20a%20preset%20jQueryUI%20theme%20hosted%20by%20Google%20and%20the%20end%20results%20look%20pretty%20good%21&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.shareaholic.com/api/share/?title=Design+Your+Site+Around+a+jQuery+UI+Theme&amp;link=http://blog.pnapieralski.com/jquery/jquery-ui/design-your-site-around-a-jquery-ui-theme/&amp;notes=I%20recently%20gave%20my%20personal%20portfolio%20an%20overhaul.%20%0D%0A%0D%0AI%20started%20with%20a%20preset%20jQueryUI%20theme%20hosted%20by%20Google%20and%20the%20end%20results%20look%20pretty%20good%21&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
</ul><div style="clear: both;"></div><div class="shr-getshr" style="visibility:hidden;font-size:10px !important"><a target="_blank" href="http://www.shareaholic.com/?src=pub">Get Shareaholic</a></div><div style="clear: both;"></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.pnapieralski.com/jquery/jquery-ui/design-your-site-around-a-jquery-ui-theme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clickable Table Rows with jQuery</title>
		<link>http://blog.pnapieralski.com/jquery/clickable-table-rows-with-jquery/</link>
		<comments>http://blog.pnapieralski.com/jquery/clickable-table-rows-with-jquery/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 22:51:29 +0000</pubDate>
		<dc:creator>Phillip Napieralski</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Magic: The Gathering]]></category>

		<guid isPermaLink="false">http://blog.pnapieralski.com/?p=9</guid>
		<description><![CDATA[<a href="http://www.pnapieralski.com/tuts/jquery-2-rowselect" rel="shadowbox">Check out the demo here!</a>

This is a quick tutorial that will help in a future project that I'm doing, which is a Magic: The Gathering deck building application.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.pnapieralski.com/tuts/jquery-2-rowselect" rel="shadowbox">Check out the demo here!</a></p>
<p>This tutorial hints at a project I&#8217;m working on. A deck building application for the Magic: The Gathering card game.</p>
<h2>Highlighting Rows</h2>
<p>In <a href="http://blog.pnapieralski.com/jquery/jquery-selectors-2/">jQuery Selectors 2</a>, I talked about how to highlight certain rows in a table. We can build off this to begin a full sized app (at least the frontend) with jQuery.</p>
<p>To recap briefly, we allow rows be clickable by using the following code:</p>
<pre class="brush: jscript; title: ; notranslate">
$(document).ready(function() {
	$(&quot;tr&quot;).click(function(){
		// store our selection of the row that was clicked
		row = $(this);

		// toggle the &quot;selected&quot; class for the clicked row
		row.toggleClass(&quot;selected&quot;);
	});
});
</pre>
<p>Note first that the code is inside the $(document).ready(&#8230;) function. This will be the case for the code in the rest of this post.</p>
<h2>Show Card Selections</h2>
<p>How do we know what the user selected? Well, we can accomplish that task with the following code:</p>
<pre class="brush: jscript; title: ; notranslate">
	// check for a button click
	$(&quot;#show_button&quot;).click(function(){
		var cards = &quot;&quot;;

		// search through each row that has the &quot;selected&quot; class
		$(&quot;tr.selected&quot;).each(function() {
			// append the card name (which is between &lt;th&gt; tags) to our cards variable
			cards += $(this).find(&quot;th&quot;).html();
			cards += &quot;\n&quot;;
		});

		// Simply alert the user what they selected for now
		alert(&quot;You selected:\n&quot;+cards);
	});
</pre>
<p>There you have it. The next step is to replace the alert(&#8220;&#8221;) piece with a $.post(&#8230;) request to a php script with the selected cards. </p>
<h2>Next Time</h2>
<p>Lost on this tutorial? Try <a href="http://blog.pnapieralski.com/jquery/jquery-selectors-2/">part 2</a></p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://www.shareaholic.com/api/share/?title=Clickable+Table+Rows+with+jQuery&amp;link=http://blog.pnapieralski.com/jquery/clickable-table-rows-with-jquery/&amp;notes=Check%20out%20the%20demo%20here%21%0D%0A%0D%0AThis%20is%20a%20quick%20tutorial%20that%20will%20help%20in%20a%20future%20project%20that%20I%27m%20doing%2C%20which%20is%20a%20Magic%3A%20The%20Gathering%20deck%20building%20application.&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%2524%257Btitle%257D%2B-%2B%2524%257Bshort_link%257D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-digg">
			<a href="http://www.shareaholic.com/api/share/?title=Clickable+Table+Rows+with+jQuery&amp;link=http://blog.pnapieralski.com/jquery/clickable-table-rows-with-jquery/&amp;notes=Check%20out%20the%20demo%20here%21%0D%0A%0D%0AThis%20is%20a%20quick%20tutorial%20that%20will%20help%20in%20a%20future%20project%20that%20I%27m%20doing%2C%20which%20is%20a%20Magic%3A%20The%20Gathering%20deck%20building%20application.&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=3&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-reddit">
			<a href="http://www.shareaholic.com/api/share/?title=Clickable+Table+Rows+with+jQuery&amp;link=http://blog.pnapieralski.com/jquery/clickable-table-rows-with-jquery/&amp;notes=Check%20out%20the%20demo%20here%21%0D%0A%0D%0AThis%20is%20a%20quick%20tutorial%20that%20will%20help%20in%20a%20future%20project%20that%20I%27m%20doing%2C%20which%20is%20a%20Magic%3A%20The%20Gathering%20deck%20building%20application.&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-technorati">
			<a href="http://www.shareaholic.com/api/share/?title=Clickable+Table+Rows+with+jQuery&amp;link=http://blog.pnapieralski.com/jquery/clickable-table-rows-with-jquery/&amp;notes=Check%20out%20the%20demo%20here%21%0D%0A%0D%0AThis%20is%20a%20quick%20tutorial%20that%20will%20help%20in%20a%20future%20project%20that%20I%27m%20doing%2C%20which%20is%20a%20Magic%3A%20The%20Gathering%20deck%20building%20application.&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=10&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.shareaholic.com/api/share/?title=Clickable+Table+Rows+with+jQuery&amp;link=http://blog.pnapieralski.com/jquery/clickable-table-rows-with-jquery/&amp;notes=Check%20out%20the%20demo%20here%21%0D%0A%0D%0AThis%20is%20a%20quick%20tutorial%20that%20will%20help%20in%20a%20future%20project%20that%20I%27m%20doing%2C%20which%20is%20a%20Magic%3A%20The%20Gathering%20deck%20building%20application.&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.shareaholic.com/api/share/?title=Clickable+Table+Rows+with+jQuery&amp;link=http://blog.pnapieralski.com/jquery/clickable-table-rows-with-jquery/&amp;notes=Check%20out%20the%20demo%20here%21%0D%0A%0D%0AThis%20is%20a%20quick%20tutorial%20that%20will%20help%20in%20a%20future%20project%20that%20I%27m%20doing%2C%20which%20is%20a%20Magic%3A%20The%20Gathering%20deck%20building%20application.&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
</ul><div style="clear: both;"></div><div class="shr-getshr" style="visibility:hidden;font-size:10px !important"><a target="_blank" href="http://www.shareaholic.com/?src=pub">Get Shareaholic</a></div><div style="clear: both;"></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.pnapieralski.com/jquery/clickable-table-rows-with-jquery/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>jQuery Selectors 2</title>
		<link>http://blog.pnapieralski.com/jquery/jquery-selectors-2/</link>
		<comments>http://blog.pnapieralski.com/jquery/jquery-selectors-2/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 23:08:55 +0000</pubDate>
		<dc:creator>Phillip Napieralski</dc:creator>
				<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://blog.pnapieralski.com/?p=8</guid>
		<description><![CDATA[<a href="http://www.pnapieralski.com/tuts/jquery-1s2" rel="shadowbox">Check out the demo</a>

In this tutorial, I'll be getting just a little bit more advanced with selectors.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.pnapieralski.com/tuts/jquery-1s2" rel="shadowbox">Check out the demo</a></p>
<p>In this tutorial, we&#8217;ll be getting just a little bit more advanced with the selectors.</p>
<h2>Children AND highlighting rows</h2>
<h3>: odd, :first, :last</h3>
<p>If we are displaying a large amount of data in a table, we can easily increase the readability by highlighting every other row. Let&#8217;s look at this simple table:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;table id=&quot;demo&quot; border=&quot;1&quot;&gt;
	&lt;tr&gt;
		&lt;th&gt;Llanowar Augur&lt;/th&gt;
		&lt;td&gt;Creature - Elf Shaman, Sacrifice Llanowar Augur: Target creature gets +3/+3 and gains trample until end of turn.&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
		&lt;th&gt;Llanowar Behemoth&lt;/th&gt;
		&lt;td&gt;Creature - Elemental, Tap an untapped creature you control: Llanowar Behemoth gets +1/+1 until end of turn.&lt;/td&gt;
	&lt;/tr&gt;
	...
&lt;/table&gt;
</pre>
<p>We can highlight every other row of this table by adding the following code inside the $(document).ready(function(){&#8230;}) area.</p>
<pre class="brush: jscript; title: ; notranslate">
$(&quot;#demo tr:odd&quot;).addClass(&quot;highlight&quot;);
</pre>
<p>What does this do? It first finds the id <em>#demo</em>, then it finds all the odd numbered table rows (<em>&lt;tr&gt;</em>). The <em>.addClass(&#8230;)</em> method refers to a CSS class <em>highlight</em>. We could easily define this with something like the following between <em>&lt;style&gt;</em> tags:</p>
<pre class="brush: css; title: ; notranslate">
.highlight { background-color: lightgrey; }
</pre>
<p>With that same table, we could change our jQuery from <em>$(&#8220;#demo tr:odd&#8221;)</em> to <em>$(&#8220;#demo tr:first&#8221;)</em> and similarly with <em>:last</em> to grab the first and the last rows in the table</p>
<h3>:first-child, :last-child, (&gt;)</h3>
<p>Now, what if we had nested HTML tags and wanted to highlight only certain tags inside the initial tag. Consider the following HTML:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;div id=&quot;demo&quot; style=&quot;border:1px solid black&quot;&gt;
	&lt;p&gt;
		This is inside a &lt;em&gt;p&lt;/em&gt; and also a PARENT of the #demo div
	&lt;/p&gt;
	&lt;p&gt;
		This is also inside a &lt;em&gt;p&lt;/em&gt;, but it's not the first-child!
	&lt;/p&gt;
	&lt;p&gt;
		Okay... this is another &lt;em&gt;p&lt;/em&gt; inside #demo
	&lt;/p&gt;
	&lt;p&gt;
		This is the last child of the #demo div.
	&lt;/p&gt;
	This is NOT inside it's own &lt;em&gt;p&lt;/em&gt;, so it does not count as a child!
&lt;/div&gt;
</pre>
<p>Now, if we wanted to highlight the first and last <em>p</em> tags inside the #demo DIV, we execute the following jQuery:</p>
<pre class="brush: jscript; title: ; notranslate">
$(&quot;#demo p:first-child&quot;).addClass(&quot;highlight&quot;);
$(&quot;#demo p:last-child&quot;).addClass(&quot;highlight&quot;);
</pre>
<p>More interestingly, we can choose to highlight every child with the following code:</p>
<pre class="brush: jscript; title: ; notranslate">
$(&quot;div#demo &amp;gt; p&quot;).addClass(&quot;highlight&quot;);
</pre>
<h2>Next Time</h2>
<p>Lost? Try <a href="http://blog.pnapieralski.com/jquery/jquery-selectors-1/">part 1</a>.</p>
<p>Make use of these selectors in <a href="http://blog.pnapieralski.com/jquery/clickable-table-rows-with-jquery/">part 3</a>.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://www.shareaholic.com/api/share/?title=jQuery+Selectors+2&amp;link=http://blog.pnapieralski.com/jquery/jquery-selectors-2/&amp;notes=Check%20out%20the%20demo%0D%0A%0D%0AIn%20this%20tutorial%2C%20I%27ll%20be%20getting%20just%20a%20little%20bit%20more%20advanced%20with%20selectors.&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%2524%257Btitle%257D%2B-%2B%2524%257Bshort_link%257D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-digg">
			<a href="http://www.shareaholic.com/api/share/?title=jQuery+Selectors+2&amp;link=http://blog.pnapieralski.com/jquery/jquery-selectors-2/&amp;notes=Check%20out%20the%20demo%0D%0A%0D%0AIn%20this%20tutorial%2C%20I%27ll%20be%20getting%20just%20a%20little%20bit%20more%20advanced%20with%20selectors.&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=3&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-reddit">
			<a href="http://www.shareaholic.com/api/share/?title=jQuery+Selectors+2&amp;link=http://blog.pnapieralski.com/jquery/jquery-selectors-2/&amp;notes=Check%20out%20the%20demo%0D%0A%0D%0AIn%20this%20tutorial%2C%20I%27ll%20be%20getting%20just%20a%20little%20bit%20more%20advanced%20with%20selectors.&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-technorati">
			<a href="http://www.shareaholic.com/api/share/?title=jQuery+Selectors+2&amp;link=http://blog.pnapieralski.com/jquery/jquery-selectors-2/&amp;notes=Check%20out%20the%20demo%0D%0A%0D%0AIn%20this%20tutorial%2C%20I%27ll%20be%20getting%20just%20a%20little%20bit%20more%20advanced%20with%20selectors.&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=10&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.shareaholic.com/api/share/?title=jQuery+Selectors+2&amp;link=http://blog.pnapieralski.com/jquery/jquery-selectors-2/&amp;notes=Check%20out%20the%20demo%0D%0A%0D%0AIn%20this%20tutorial%2C%20I%27ll%20be%20getting%20just%20a%20little%20bit%20more%20advanced%20with%20selectors.&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.shareaholic.com/api/share/?title=jQuery+Selectors+2&amp;link=http://blog.pnapieralski.com/jquery/jquery-selectors-2/&amp;notes=Check%20out%20the%20demo%0D%0A%0D%0AIn%20this%20tutorial%2C%20I%27ll%20be%20getting%20just%20a%20little%20bit%20more%20advanced%20with%20selectors.&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
</ul><div style="clear: both;"></div><div class="shr-getshr" style="visibility:hidden;font-size:10px !important"><a target="_blank" href="http://www.shareaholic.com/?src=pub">Get Shareaholic</a></div><div style="clear: both;"></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.pnapieralski.com/jquery/jquery-selectors-2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>jQuery Selectors 1</title>
		<link>http://blog.pnapieralski.com/jquery/jquery-selectors-1/</link>
		<comments>http://blog.pnapieralski.com/jquery/jquery-selectors-1/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 02:50:27 +0000</pubDate>
		<dc:creator>Phillip Napieralski</dc:creator>
				<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://blog.pnapieralski.com/?p=7</guid>
		<description><![CDATA[<a href="http://pnapieralski.com/tuts/jquery-1s1" rel="shadowbox">Check out the demo (it's very simple)</a>

I realized my previous post about a Happy Polack feature might be completely confusing if you don't know the following: jQuery, PHP or my database structure.

I'm going to remedy this by having a multi part series about jQuery (followed by PHP and mySQL).]]></description>
			<content:encoded><![CDATA[<p><a href="http://pnapieralski.com/tuts/jquery-1s1"  rel="shadowbox">Check out the demo (it&#8217;s very simple)</a></p>
<p>I realized my previous post about a Happy Polack feature might be completely confusing if you don&#8217;t know the following:</p>
<ul>
<li>jQuery</li>
<li>PHP</li>
<li>My database structure</li>
</ul>
<p>I&#8217;m going to remedy this by having a multi part series about jQuery (followed by PHP and mySQL).</p>
<h2>Introduction</h2>
<p>For part 1 of the tutorial, I will be focusing on a few simple examples so that you can get a hold of the various &#8220;selectors&#8221; in jQuery. But first&#8230; let&#8217;s get jQuery setup.</p>
<h3>Adding jQuery to Your Page</h3>
<p>Simply add the following code between the <em>&lt;head&gt;</em> tags on your webpage (for later releases, change the 1.4 to the current release):</p>
<pre class="brush: xml; title: ; notranslate">
&lt;script src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
</pre>
<p>I should note that it is a VERY good idea to link directly to google&#8217;s repository instead of hosting the jQuery framework on your server. I have excellent reasons for this (ask me).</p>
<h2>ID This, CLASS That</h2>
<p>The most common thing I use jQuery for is to find a certain object ID or CLASS on the webpage. Let&#8217;s write some simple HTML that we will modify easily with javascript.</p>
<pre class="brush: xml; title: ; notranslate">
&lt;div id=&quot;some_picture&quot;&gt;
     &lt;img src=&quot;http://pnapieralski.com/images/me.jpg&quot; /&gt;
      This is a sweet picture isn't it!?
&lt;/div&gt;
&lt;button id=&quot;some_button&quot;&gt;That pic is wack&lt;/button&gt;
</pre>
<p>I simply created a div with a picture and some text in it. I gave it the id of <em>some_picture</em> that we will reference later. I also created a button with an id of &#8220;some_button&#8221;.</p>
<p>Now we want to add some functionality. Let&#8217;s make it so that when we press the <em>That pic is wack</em> button, the image disappears. Simple enough, here&#8217;s the code (add it between the <em>&lt;head&gt;</em> tags):</p>
<pre class="brush: jscript; title: ; notranslate">
&lt;script type=&quot;text/javascript&quot;&gt;
$(document).ready(function(){
     $(&quot;#some_button&quot;).click(function(){
          $(&quot;#some_picture&quot;).toggle(&quot;slow&quot;);
     })
});
&lt;/script&gt;
</pre>
<p>Okay, let me explain. The <em>$(document).ready(&#8230;)</em> function tells us to execute the function in its parameter list after the webpage is done loading. NOTE: This piece is essential since the #some_button and #some_picture stuff is not loaded before this script since we put it in the <em>&lt;head&gt;</em> tags.</p>
<p>The <em>$(&#8220;#some_button&#8221;)</em> piece of code is <em>selecting</em> the button based on its id, which we assigned earlier. Then, we use the built-in jQuery function <em>.click(&#8230;)</em>, which will execute the function supplied to it&#8217;s parameter list. Inside the <em>function(){&#8230;}</em> code, I placed code to toggle whether or not the div containing the picture is visible. Simply put, select the div with <em>$(&#8220;#some_id&#8221;)</em> and then call the toggle() function. Easy as that!</p>
<p>Now, suppose instead of an id, we had assigned the items a class instead. We can use jQuery to select it by doing <em>$(&#8220;.some_pictures&#8221;)</em>.</p>
<h2>Next Time</h2>
<p>Make sure to check out <a href="http://blog.pnapieralski.com/jquery/jquery-selectors-2/">part 2</a>.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://www.shareaholic.com/api/share/?title=jQuery+Selectors+1&amp;link=http://blog.pnapieralski.com/jquery/jquery-selectors-1/&amp;notes=Check%20out%20the%20demo%20%28it%27s%20very%20simple%29%0D%0A%0D%0AI%20realized%20my%20previous%20post%20about%20a%20Happy%20Polack%20feature%20might%20be%20completely%20confusing%20if%20you%20don%27t%20know%20the%20following%3A%20jQuery%2C%20PHP%20or%20my%20database%20structure.%0D%0A%0D%0AI%27m%20going%20to%20remedy%20this%20by%20having%20a%20multi%20part%20series%20about%20jQuery%20%28followed%20by%20PHP%20and%20mySQL%29.&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%2524%257Btitle%257D%2B-%2B%2524%257Bshort_link%257D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-digg">
			<a href="http://www.shareaholic.com/api/share/?title=jQuery+Selectors+1&amp;link=http://blog.pnapieralski.com/jquery/jquery-selectors-1/&amp;notes=Check%20out%20the%20demo%20%28it%27s%20very%20simple%29%0D%0A%0D%0AI%20realized%20my%20previous%20post%20about%20a%20Happy%20Polack%20feature%20might%20be%20completely%20confusing%20if%20you%20don%27t%20know%20the%20following%3A%20jQuery%2C%20PHP%20or%20my%20database%20structure.%0D%0A%0D%0AI%27m%20going%20to%20remedy%20this%20by%20having%20a%20multi%20part%20series%20about%20jQuery%20%28followed%20by%20PHP%20and%20mySQL%29.&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=3&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-reddit">
			<a href="http://www.shareaholic.com/api/share/?title=jQuery+Selectors+1&amp;link=http://blog.pnapieralski.com/jquery/jquery-selectors-1/&amp;notes=Check%20out%20the%20demo%20%28it%27s%20very%20simple%29%0D%0A%0D%0AI%20realized%20my%20previous%20post%20about%20a%20Happy%20Polack%20feature%20might%20be%20completely%20confusing%20if%20you%20don%27t%20know%20the%20following%3A%20jQuery%2C%20PHP%20or%20my%20database%20structure.%0D%0A%0D%0AI%27m%20going%20to%20remedy%20this%20by%20having%20a%20multi%20part%20series%20about%20jQuery%20%28followed%20by%20PHP%20and%20mySQL%29.&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-technorati">
			<a href="http://www.shareaholic.com/api/share/?title=jQuery+Selectors+1&amp;link=http://blog.pnapieralski.com/jquery/jquery-selectors-1/&amp;notes=Check%20out%20the%20demo%20%28it%27s%20very%20simple%29%0D%0A%0D%0AI%20realized%20my%20previous%20post%20about%20a%20Happy%20Polack%20feature%20might%20be%20completely%20confusing%20if%20you%20don%27t%20know%20the%20following%3A%20jQuery%2C%20PHP%20or%20my%20database%20structure.%0D%0A%0D%0AI%27m%20going%20to%20remedy%20this%20by%20having%20a%20multi%20part%20series%20about%20jQuery%20%28followed%20by%20PHP%20and%20mySQL%29.&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=10&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.shareaholic.com/api/share/?title=jQuery+Selectors+1&amp;link=http://blog.pnapieralski.com/jquery/jquery-selectors-1/&amp;notes=Check%20out%20the%20demo%20%28it%27s%20very%20simple%29%0D%0A%0D%0AI%20realized%20my%20previous%20post%20about%20a%20Happy%20Polack%20feature%20might%20be%20completely%20confusing%20if%20you%20don%27t%20know%20the%20following%3A%20jQuery%2C%20PHP%20or%20my%20database%20structure.%0D%0A%0D%0AI%27m%20going%20to%20remedy%20this%20by%20having%20a%20multi%20part%20series%20about%20jQuery%20%28followed%20by%20PHP%20and%20mySQL%29.&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.shareaholic.com/api/share/?title=jQuery+Selectors+1&amp;link=http://blog.pnapieralski.com/jquery/jquery-selectors-1/&amp;notes=Check%20out%20the%20demo%20%28it%27s%20very%20simple%29%0D%0A%0D%0AI%20realized%20my%20previous%20post%20about%20a%20Happy%20Polack%20feature%20might%20be%20completely%20confusing%20if%20you%20don%27t%20know%20the%20following%3A%20jQuery%2C%20PHP%20or%20my%20database%20structure.%0D%0A%0D%0AI%27m%20going%20to%20remedy%20this%20by%20having%20a%20multi%20part%20series%20about%20jQuery%20%28followed%20by%20PHP%20and%20mySQL%29.&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
</ul><div style="clear: both;"></div><div class="shr-getshr" style="visibility:hidden;font-size:10px !important"><a target="_blank" href="http://www.shareaholic.com/?src=pub">Get Shareaholic</a></div><div style="clear: both;"></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.pnapieralski.com/jquery/jquery-selectors-1/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

