Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.
Ben Nadel at the jQuery Conference 2009 (Cambridge, MA) with: Scott Gonzalez
Ben Nadel at the jQuery Conference 2009 (Cambridge, MA) with: Scott Gonzalez@scott_gonzalez )

Steven Black

Member since Oct 7, 2009

Recent Blog Comments By Steven Black

  • Learning Event-Driven Programming Best Practices From Web Browsers

    Posted on Dec 14, 2010 at 11:30 AM

    I notice that click() behaves differently than submit(). These both yield the same result for me; the event delegate fires as expected: $("input").eq(0).click() $("input")[0].click() But as you show, these do not. The second line does not fire the event delegate. $("... read more »

  • Passing A Function To jQuery's Attr() Method For Implicit Iteration

    Posted on Oct 7, 2009 at 1:18 PM

    Thanks lads! That clarifies it. I got thrown by the proximate code-comment that implies the call is about resolving style values. The interesting thing is, jQuery.prop() is called nowhere else in version 1.3.2. So apparently .attr() is the only method that's wired in this particular way. I wou... read more »

  • Passing A Function To jQuery's Attr() Method For Implicit Iteration

    Posted on Oct 7, 2009 at 12:17 PM

    I'm looking at the jQuery source, trying to reckon what implements this .attr(,function(){}) behaviour. I don't see it. What am I missing? My interest here is, looking at the jQuery source, what other native jQuery methods behave likewise? Because this is way cool. For example, .html(function()... read more »