Steven Black
Member since Oct 7, 2009
- Profile: /members/4472-steven-black.htm
- URL: http://stevenblack.com
- Comments: 3
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 »