On May 1, 12:34 pm, Matt <matthew.h...@gmail.com> wrote: > I'm attempting to make every ".inputbox" element except the last one > read-only on my webpage. Firefox and IE comply but Safari and Chrome > apply "readonly" to ALL ".inputbox" elements on the page, even the > last one. > > I've narrowed down my issues to the selector in this line: > > $(".inputbox:not(:last)").attr("readonly", "readonly"); > > Am I missing something in this selector, or is there a problem with > Webkit? (I'm assuming Webkit since the problem spans Chrome and Safari > only.) One can reproduce this by using this HTML file: >
Same here, different results on Chrome vs FF. $(".inputbox:not (input:last)") or $('.inputbox').not(':last') for some reason work fine. Time to file a ticket! http://dev.jquery.com/newticket/ cheers -- ricardo