<?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: jQuery Quick Tip #1 &#8211; Adding a class on focus</title> <atom:link href="http://www.matthewcarlin.co.uk/jquery-quick-tip-1-adding-a-class-on-focus/feed/" rel="self" type="application/rss+xml" /><link>http://www.matthewcarlin.co.uk/jquery-quick-tip-1-adding-a-class-on-focus/</link> <description></description> <lastBuildDate>Thu, 20 May 2010 15:42:27 +0100</lastBuildDate> <generator>http://wordpress.org/?v=2.8.4</generator> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>By: admin</title><link>http://www.matthewcarlin.co.uk/jquery-quick-tip-1-adding-a-class-on-focus/comment-page-1/#comment-84</link> <dc:creator>admin</dc:creator> <pubDate>Tue, 02 Jun 2009 19:25:26 +0000</pubDate> <guid
isPermaLink="false">http://www.matthewcarlin.co.uk/?p=252#comment-84</guid> <description>Cheers sean for the heads up about the alternative method! I&#039;ll give it a try.</description> <content:encoded><![CDATA[<p>Cheers sean for the heads up about the alternative method! I&#8217;ll give it a try.</p> ]]></content:encoded> </item> <item><title>By: Sean Curtis</title><link>http://www.matthewcarlin.co.uk/jquery-quick-tip-1-adding-a-class-on-focus/comment-page-1/#comment-82</link> <dc:creator>Sean Curtis</dc:creator> <pubDate>Tue, 02 Jun 2009 01:32:21 +0000</pubDate> <guid
isPermaLink="false">http://www.matthewcarlin.co.uk/?p=252#comment-82</guid> <description>Oops - should be:$(function(){
$(’input[type=text]‘).bind(’focus blur’, function(){ $(this).toggleClass(’focus_class’); });
});You can do it this way currently in 1.3.2 but if you have other classes they may be removed. See http://brandonaaron.net/blog/2009/05/6/jquery-edge-enhanced-toggleclass for more info.</description> <content:encoded><![CDATA[<p>Oops &#8211; should be:</p><p>$(function(){<br
/> $(’input[type=text]‘).bind(’focus blur’, function(){ $(this).toggleClass(’focus_class’); });<br
/> });</p><p>You can do it this way currently in 1.3.2 but if you have other classes they may be removed. See <a
href="http://brandonaaron.net/blog/2009/05/6/jquery-edge-enhanced-toggleclass" rel="nofollow">http://brandonaaron.net/blog/2009/05/6/jquery-edge-enhanced-toggleclass</a> for more info.</p> ]]></content:encoded> </item> <item><title>By: Sean Curtis</title><link>http://www.matthewcarlin.co.uk/jquery-quick-tip-1-adding-a-class-on-focus/comment-page-1/#comment-81</link> <dc:creator>Sean Curtis</dc:creator> <pubDate>Tue, 02 Jun 2009 01:29:43 +0000</pubDate> <guid
isPermaLink="false">http://www.matthewcarlin.co.uk/?p=252#comment-81</guid> <description>You can soon do this even simpler with toggleClass(). From version 1.3.3 (out soon) you can just do:$(function(){
$(&#039;input[type=text]&#039;).trigger(&#039;focus blur&#039;, function(){ $(this).toggleClass(&#039;focus_class&#039;); });
}):</description> <content:encoded><![CDATA[<p>You can soon do this even simpler with toggleClass(). From version 1.3.3 (out soon) you can just do:</p><p>$(function(){<br
/> $(&#8217;input[type=text]&#8216;).trigger(&#8217;focus blur&#8217;, function(){ $(this).toggleClass(&#8217;focus_class&#8217;); });<br
/> }):</p> ]]></content:encoded> </item> </channel> </rss>
<!-- This site's performance optimized by W3 Total Cache. Dramatically improve the speed and reliability of your blog!

Learn more about our WordPress Plugins: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (user agent is rejected)
Database Caching using memcached

Served from: kundenserver.de @ 2010-07-31 14:51:52 -->