<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-1078898499337496912.post2673343480828503755..comments</id><updated>2011-09-27T13:13:39.412-07:00</updated><category term='PHP'/><category term='Guest Author'/><category term='jQuery'/><category term='jTruncate'/><category term='Hibernate'/><category term='Kwicks'/><category term='Misc'/><category term='Asciible'/><category term='JavaScript'/><category term='Blogger'/><category term='Java'/><category term='Algorithms'/><category term='Politics'/><category term='Photoshop'/><title type='text'>Comments on jMar's Blog: Add Hover Class to Anything in jQuery</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.jeremymartin.name/feeds/2673343480828503755/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/2673343480828503755/comments/default'/><link rel='alternate' type='text/html' href='http://blog.jeremymartin.name/2008/04/add-hover-class-to-anything-in-jquery.html'/><author><name>Jeremy Martin</name><uri>http://www.blogger.com/profile/03514319709844297772</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>8</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1078898499337496912.post-2704822813648156262</id><published>2011-09-20T01:11:56.552-07:00</published><updated>2011-09-20T01:11:56.552-07:00</updated><title type='text'>Wow thats so simple and great way to change classe...</title><content type='html'>Wow thats so simple and great way to change classes, thanks!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/2673343480828503755/comments/default/2704822813648156262'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/2673343480828503755/comments/default/2704822813648156262'/><link rel='alternate' type='text/html' href='http://blog.jeremymartin.name/2008/04/add-hover-class-to-anything-in-jquery.html?showComment=1316506316552#c2704822813648156262' title=''/><author><name>pixart</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.jeremymartin.name/2008/04/add-hover-class-to-anything-in-jquery.html' ref='tag:blogger.com,1999:blog-1078898499337496912.post-2673343480828503755' source='http://www.blogger.com/feeds/1078898499337496912/posts/default/2673343480828503755' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-808903754'/></entry><entry><id>tag:blogger.com,1999:blog-1078898499337496912.post-3593101943069092470</id><published>2008-04-21T09:34:00.000-07:00</published><updated>2008-04-21T09:34:00.000-07:00</updated><title type='text'>@Karl&lt;br&gt;Hey thanks for commenting - and sorry  ab...</title><content type='html'>@Karl&lt;BR/&gt;Hey thanks for commenting - and sorry  about that!  I'm afraid that post was before I even heard of jQuery or your site, and apparently failed to &lt;A HREF="http://www.google.com/search?hl=en&amp;q=hover+class+to+anything+in+jquery&amp;btnG=Google+Search" REL="nofollow"&gt;google it&lt;/A&gt; :p</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/2673343480828503755/comments/default/3593101943069092470'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/2673343480828503755/comments/default/3593101943069092470'/><link rel='alternate' type='text/html' href='http://blog.jeremymartin.name/2008/04/add-hover-class-to-anything-in-jquery.html?showComment=1208795640000#c3593101943069092470' title=''/><author><name>Jeremy Martin</name><uri>http://www.blogger.com/profile/03514319709844297772</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.jeremymartin.name/2008/04/add-hover-class-to-anything-in-jquery.html' ref='tag:blogger.com,1999:blog-1078898499337496912.post-2673343480828503755' source='http://www.blogger.com/feeds/1078898499337496912/posts/default/2673343480828503755' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-614393751'/></entry><entry><id>tag:blogger.com,1999:blog-1078898499337496912.post-1485836016041423678</id><published>2008-04-21T08:59:00.000-07:00</published><updated>2008-04-21T08:59:00.000-07:00</updated><title type='text'>Hi Jeremy,&lt;br&gt;&lt;br&gt;Glad to see you spreading the wo...</title><content type='html'>Hi Jeremy,&lt;BR/&gt;&lt;BR/&gt;Glad to see you spreading the word on how easy it is to use jQuery for things like this. Reminds me of an entry I wrote last year: &lt;A HREF="http://www.learningjquery.com/2007/02/quick-tip-set-hover-class-for-anything" REL="nofollow"&gt;Quick Tip: Set Hover Class for Anything&lt;/A&gt;. :)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/2673343480828503755/comments/default/1485836016041423678'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/2673343480828503755/comments/default/1485836016041423678'/><link rel='alternate' type='text/html' href='http://blog.jeremymartin.name/2008/04/add-hover-class-to-anything-in-jquery.html?showComment=1208793540000#c1485836016041423678' title=''/><author><name>Karl</name><uri>http://www.blogger.com/profile/17411929320121469017</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.jeremymartin.name/2008/04/add-hover-class-to-anything-in-jquery.html' ref='tag:blogger.com,1999:blog-1078898499337496912.post-2673343480828503755' source='http://www.blogger.com/feeds/1078898499337496912/posts/default/2673343480828503755' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1390737203'/></entry><entry><id>tag:blogger.com,1999:blog-1078898499337496912.post-4176567465630697950</id><published>2008-04-21T06:22:00.000-07:00</published><updated>2008-04-21T06:22:00.000-07:00</updated><title type='text'>@Shadowfiend&lt;br&gt;Thanks for the tip - that definite...</title><content type='html'>@Shadowfiend&lt;BR/&gt;Thanks for the tip - that definitely does seem like a better approach.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/2673343480828503755/comments/default/4176567465630697950'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/2673343480828503755/comments/default/4176567465630697950'/><link rel='alternate' type='text/html' href='http://blog.jeremymartin.name/2008/04/add-hover-class-to-anything-in-jquery.html?showComment=1208784120000#c4176567465630697950' title=''/><author><name>Jeremy Martin</name><uri>http://www.blogger.com/profile/03514319709844297772</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.jeremymartin.name/2008/04/add-hover-class-to-anything-in-jquery.html' ref='tag:blogger.com,1999:blog-1078898499337496912.post-2673343480828503755' source='http://www.blogger.com/feeds/1078898499337496912/posts/default/2673343480828503755' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-614393751'/></entry><entry><id>tag:blogger.com,1999:blog-1078898499337496912.post-3003949746998107555</id><published>2008-04-20T11:12:00.000-07:00</published><updated>2008-04-20T11:12:00.000-07:00</updated><title type='text'>A more efficient way of doing this would be to add...</title><content type='html'>A more efficient way of doing this would be to add a hover event to the document body and then assign the class on the target element (which you can get from the event object your handler is passed). This way, only one element has the event handler assigned to it. To avoid having that event fire, you can cancel the event bubble in event handlers for child elements.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/2673343480828503755/comments/default/3003949746998107555'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/2673343480828503755/comments/default/3003949746998107555'/><link rel='alternate' type='text/html' href='http://blog.jeremymartin.name/2008/04/add-hover-class-to-anything-in-jquery.html?showComment=1208715120000#c3003949746998107555' title=''/><author><name>Shadowfiend</name><uri>http://blog.withoutincident.com/</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.jeremymartin.name/2008/04/add-hover-class-to-anything-in-jquery.html' ref='tag:blogger.com,1999:blog-1078898499337496912.post-2673343480828503755' source='http://www.blogger.com/feeds/1078898499337496912/posts/default/2673343480828503755' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-788431562'/></entry><entry><id>tag:blogger.com,1999:blog-1078898499337496912.post-8113336570432323377</id><published>2008-04-18T11:36:00.000-07:00</published><updated>2008-04-18T11:36:00.000-07:00</updated><title type='text'>No, I understand</title><content type='html'>No, I understand</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/2673343480828503755/comments/default/8113336570432323377'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/2673343480828503755/comments/default/8113336570432323377'/><link rel='alternate' type='text/html' href='http://blog.jeremymartin.name/2008/04/add-hover-class-to-anything-in-jquery.html?showComment=1208543760000#c8113336570432323377' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.jeremymartin.name/2008/04/add-hover-class-to-anything-in-jquery.html' ref='tag:blogger.com,1999:blog-1078898499337496912.post-2673343480828503755' source='http://www.blogger.com/feeds/1078898499337496912/posts/default/2673343480828503755' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1084724166'/></entry><entry><id>tag:blogger.com,1999:blog-1078898499337496912.post-5904926729856241213</id><published>2008-04-18T11:30:00.000-07:00</published><updated>2008-04-18T11:30:00.000-07:00</updated><title type='text'>No... I'm afraid I made the class names a little c...</title><content type='html'>No... I'm afraid I made the class names a little confusing.  In this example, you would have some divs in your page with class "iHoverable".  Now let's say we execute the script ONLY on elements with class iHoverable.  The script would start off like this:&lt;BR/&gt;&lt;BR/&gt;# $('.iHoverable').hover(&lt;BR/&gt;    ...&lt;BR/&gt;);&lt;BR/&gt;&lt;BR/&gt;This loops through each instance of .iHoverable, and tells that element to add a class of "hover" when the mouseover event fires, and to remove the class of "hover" when the mouseleave event fires.&lt;BR/&gt;&lt;BR/&gt;That's why, in the last CSS example, you can add styles that are only applied while it is "hovered" by using the following selector: .iHoverable.hover.&lt;BR/&gt;&lt;BR/&gt;Does that make more sense now?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/2673343480828503755/comments/default/5904926729856241213'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/2673343480828503755/comments/default/5904926729856241213'/><link rel='alternate' type='text/html' href='http://blog.jeremymartin.name/2008/04/add-hover-class-to-anything-in-jquery.html?showComment=1208543400000#c5904926729856241213' title=''/><author><name>Jeremy Martin</name><uri>http://www.blogger.com/profile/03514319709844297772</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.jeremymartin.name/2008/04/add-hover-class-to-anything-in-jquery.html' ref='tag:blogger.com,1999:blog-1078898499337496912.post-2673343480828503755' source='http://www.blogger.com/feeds/1078898499337496912/posts/default/2673343480828503755' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-614393751'/></entry><entry><id>tag:blogger.com,1999:blog-1078898499337496912.post-6582495415372930846</id><published>2008-04-18T11:11:00.000-07:00</published><updated>2008-04-18T11:11:00.000-07:00</updated><title type='text'>Sorry, I am a bit new to jquery and web developmen...</title><content type='html'>Sorry, I am a bit new to jquery and web development altogether.  How is:&lt;BR/&gt;&lt;BR/&gt;$(this).addClass('hover');&lt;BR/&gt;&lt;BR/&gt;related to:&lt;BR/&gt;&lt;BR/&gt;# .iHoverable?&lt;BR/&gt;&lt;BR/&gt;Shouldn't it be $(this).addClass('iHoverable');</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/2673343480828503755/comments/default/6582495415372930846'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1078898499337496912/2673343480828503755/comments/default/6582495415372930846'/><link rel='alternate' type='text/html' href='http://blog.jeremymartin.name/2008/04/add-hover-class-to-anything-in-jquery.html?showComment=1208542260000#c6582495415372930846' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.jeremymartin.name/2008/04/add-hover-class-to-anything-in-jquery.html' ref='tag:blogger.com,1999:blog-1078898499337496912.post-2673343480828503755' source='http://www.blogger.com/feeds/1078898499337496912/posts/default/2673343480828503755' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1568356263'/></entry></feed>
