[jQuery] Re: .each()

2009-04-01 Thread lukejackson
.attr() and .val() are defined on the jQuery class, not the DOM element. Try $(obj).attr("value") or obj.value instead On Apr 1, 2:46 pm, iceangel89 wrote: > i used .each to select all elements with id that starts with laLab > > $("*[id^=laLab]").each(function (i, obj) { >    alert(obj.attr("va

[jQuery] Fix for media plugin

2009-04-01 Thread lukejackson
I have come across a bug in the jQuery media plugin on line 391: if (key == 'codebase' && window.location.protocol == 'https') This should be: if (key == 'codebase' && window.location.protocol == 'https:') (note missing trailing colon) This correctly prevents the "This