Mike Lowry
Member since Sep 22, 2009
- Profile: /members/4358-mike-lowry.htm
- Comments: 1
Recent Blog Comments By Mike Lowry
-
Ask Ben: Excluding Script Tag Content From The jQuery .text() Method
Posted on Sep 22, 2009 at 2:49 PM
Here's another way to do it without having to copy the DOM node into memory. Instead just diff the length of the .hide-empty and script nodes. It requires each .hide-empty node to have an id attribute, and there may be a way around that. $('.hide-empty').each(function(){ var hidableDiv = $(this);... read more »