Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.
Ben Nadel at the jQuery Conference 2011 (Cambridge, MA) with: Niall Kader
Ben Nadel at the jQuery Conference 2011 (Cambridge, MA) with: Niall Kader

Mike Lowry

Member since Sep 22, 2009

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 »