<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: 5 jQuery Must Have Code Snippets</title>
	<atom:link href="http://www.alovefordesign.com/javascript/5-jquery-must-have-code-snippets/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.alovefordesign.com/javascript/5-jquery-must-have-code-snippets/</link>
	<description>Web Blog dedicated to web designers and graphic designers to share new ideas about web design.</description>
	<lastBuildDate>Wed, 25 Jan 2012 19:47:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jayesh Lolariya</title>
		<link>http://www.alovefordesign.com/javascript/5-jquery-must-have-code-snippets/comment-page-1/#comment-8303</link>
		<dc:creator>Jayesh Lolariya</dc:creator>
		<pubDate>Wed, 24 Aug 2011 11:22:15 +0000</pubDate>
		<guid isPermaLink="false">http://alovefordesign.com/?p=197#comment-8303</guid>
		<description>That’s really nice list of snippets. While searching about more, I found a good link which has lots of jquery code snippets.

http://jquerybyexample.blogspot.com/2011/08/mostly-used-and-essential-jquery-code.html</description>
		<content:encoded><![CDATA[<p>That’s really nice list of snippets. While searching about more, I found a good link which has lots of jquery code snippets.</p>
<p><a href="http://jquerybyexample.blogspot.com/2011/08/mostly-used-and-essential-jquery-code.html" rel="nofollow">http://jquerybyexample.blogspot.com/2011/08/mostly-used-and-essential-jquery-code.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jam Ward</title>
		<link>http://www.alovefordesign.com/javascript/5-jquery-must-have-code-snippets/comment-page-1/#comment-8113</link>
		<dc:creator>Jam Ward</dc:creator>
		<pubDate>Wed, 10 Aug 2011 18:15:06 +0000</pubDate>
		<guid isPermaLink="false">http://alovefordesign.com/?p=197#comment-8113</guid>
		<description>Some great examples here. I especially like the first example. Thanks!</description>
		<content:encoded><![CDATA[<p>Some great examples here. I especially like the first example. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Melcher</title>
		<link>http://www.alovefordesign.com/javascript/5-jquery-must-have-code-snippets/comment-page-1/#comment-7954</link>
		<dc:creator>Steve Melcher</dc:creator>
		<pubDate>Tue, 26 Jul 2011 20:38:32 +0000</pubDate>
		<guid isPermaLink="false">http://alovefordesign.com/?p=197#comment-7954</guid>
		<description>For your &quot;Back to Top&quot; link, I recommend the following change, to prevent getting a hash (#) added to the URL:

$(document).ready(function(){
  $(&#039;.top&#039;).click(function(e) {
	e.preventDefault();
	$(document).scrollTo(0,500);
  });
});</description>
		<content:encoded><![CDATA[<p>For your &#8220;Back to Top&#8221; link, I recommend the following change, to prevent getting a hash (#) added to the URL:</p>
<p>$(document).ready(function(){<br />
  $(&#8216;.top&#8217;).click(function(e) {<br />
	e.preventDefault();<br />
	$(document).scrollTo(0,500);<br />
  });<br />
});</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Web Design Texas</title>
		<link>http://www.alovefordesign.com/javascript/5-jquery-must-have-code-snippets/comment-page-1/#comment-851</link>
		<dc:creator>Web Design Texas</dc:creator>
		<pubDate>Sun, 16 Jan 2011 09:06:06 +0000</pubDate>
		<guid isPermaLink="false">http://alovefordesign.com/?p=197#comment-851</guid>
		<description>jQuery is officially legit. Bad freaking ass.</description>
		<content:encoded><![CDATA[<p>jQuery is officially legit. Bad freaking ass.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Va Infotech</title>
		<link>http://www.alovefordesign.com/javascript/5-jquery-must-have-code-snippets/comment-page-1/#comment-157</link>
		<dc:creator>Va Infotech</dc:creator>
		<pubDate>Thu, 09 Sep 2010 14:57:41 +0000</pubDate>
		<guid isPermaLink="false">http://alovefordesign.com/?p=197#comment-157</guid>
		<description>cool j Query

thanks</description>
		<content:encoded><![CDATA[<p>cool j Query</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil</title>
		<link>http://www.alovefordesign.com/javascript/5-jquery-must-have-code-snippets/comment-page-1/#comment-124</link>
		<dc:creator>Phil</dc:creator>
		<pubDate>Tue, 03 Aug 2010 17:51:47 +0000</pubDate>
		<guid isPermaLink="false">http://alovefordesign.com/?p=197#comment-124</guid>
		<description>Some great tips and techniques on here. Although the &quot;Linkable Div’s&quot; just seems like bad etiquette. If you want a div to be clickable you should do yourself a favour and wrap it in an anchor, this is much simpler, not to mention your SEO will benefit from it.</description>
		<content:encoded><![CDATA[<p>Some great tips and techniques on here. Although the &#8220;Linkable Div’s&#8221; just seems like bad etiquette. If you want a div to be clickable you should do yourself a favour and wrap it in an anchor, this is much simpler, not to mention your SEO will benefit from it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yo</title>
		<link>http://www.alovefordesign.com/javascript/5-jquery-must-have-code-snippets/comment-page-1/#comment-109</link>
		<dc:creator>Yo</dc:creator>
		<pubDate>Tue, 27 Jul 2010 22:33:20 +0000</pubDate>
		<guid isPermaLink="false">http://alovefordesign.com/?p=197#comment-109</guid>
		<description>Example 5 could be written like this:

//On Hover
$(&#039;.onhover&#039;).mouseenter(function(){    $(this).toggleClass(&#039;hover_style_class&#039;)
})</description>
		<content:encoded><![CDATA[<p>Example 5 could be written like this:</p>
<p>//On Hover<br />
$(&#8216;.onhover&#8217;).mouseenter(function(){    $(this).toggleClass(&#8216;hover_style_class&#8217;)<br />
})</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin</title>
		<link>http://www.alovefordesign.com/javascript/5-jquery-must-have-code-snippets/comment-page-1/#comment-55</link>
		<dc:creator>Justin</dc:creator>
		<pubDate>Fri, 09 Jul 2010 08:28:53 +0000</pubDate>
		<guid isPermaLink="false">http://alovefordesign.com/?p=197#comment-55</guid>
		<description>Thanks for the great replies guys, 

We appreciate it a lot! Keep checking back for more related tutorials! Remember to follow us on twitter as well, we update our newest tutorials on there. 

- Justin (ALoveForDesign)
http://www.twitter./alovefordesign</description>
		<content:encoded><![CDATA[<p>Thanks for the great replies guys, </p>
<p>We appreciate it a lot! Keep checking back for more related tutorials! Remember to follow us on twitter as well, we update our newest tutorials on there. </p>
<p>- Justin (ALoveForDesign)<br />
<a href="http://www.twitter./alovefordesign" rel="nofollow">http://www.twitter./alovefordesign</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: web design india</title>
		<link>http://www.alovefordesign.com/javascript/5-jquery-must-have-code-snippets/comment-page-1/#comment-54</link>
		<dc:creator>web design india</dc:creator>
		<pubDate>Fri, 09 Jul 2010 08:10:21 +0000</pubDate>
		<guid isPermaLink="false">http://alovefordesign.com/?p=197#comment-54</guid>
		<description>Thanks for u r information                          

its very  useful</description>
		<content:encoded><![CDATA[<p>Thanks for u r information                          </p>
<p>its very  useful</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Gilley</title>
		<link>http://www.alovefordesign.com/javascript/5-jquery-must-have-code-snippets/comment-page-1/#comment-48</link>
		<dc:creator>Michael Gilley</dc:creator>
		<pubDate>Sun, 04 Jul 2010 00:11:21 +0000</pubDate>
		<guid isPermaLink="false">http://alovefordesign.com/?p=197#comment-48</guid>
		<description>Good beginner code. I think a couple could be better written though to account for end user preferences.

For example, in example 1 if the user had specified in his/her browser prefs that all links should open in a new tab or window this code would be in violation of that accessibility since it forces the link to open in the same window (redirect). Instead, the developer should rely on the browser&#039;s native use of anchor events. Thus, the following would be better:

$(function() {
	$(&#039;#clickablebox&#039;).click(function() {
		$(this).find(&#039;a&#039;).click();
	});
});

(Note, there is no need to return false the div click event since there is no native behavior defined for this element.)

Likewise, for #3 it is a better practice to use positioned label tags for placeholders so screen readers can better read your forms. On focus the label simply disappears. Read this article for more info: http://www.alistapart.com/articles/makingcompactformsmoreaccessible.

Good start!</description>
		<content:encoded><![CDATA[<p>Good beginner code. I think a couple could be better written though to account for end user preferences.</p>
<p>For example, in example 1 if the user had specified in his/her browser prefs that all links should open in a new tab or window this code would be in violation of that accessibility since it forces the link to open in the same window (redirect). Instead, the developer should rely on the browser&#8217;s native use of anchor events. Thus, the following would be better:</p>
<p>$(function() {<br />
	$(&#8216;#clickablebox&#8217;).click(function() {<br />
		$(this).find(&#8216;a&#8217;).click();<br />
	});<br />
});</p>
<p>(Note, there is no need to return false the div click event since there is no native behavior defined for this element.)</p>
<p>Likewise, for #3 it is a better practice to use positioned label tags for placeholders so screen readers can better read your forms. On focus the label simply disappears. Read this article for more info: <a href="http://www.alistapart.com/articles/makingcompactformsmoreaccessible" rel="nofollow">http://www.alistapart.com/articles/makingcompactformsmoreaccessible</a>.</p>
<p>Good start!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

