On 27/11/06, Brandon Aaron <[EMAIL PROTECTED]> wrote: > On 11/27/06, Sam Collett <[EMAIL PROTECTED]> wrote: > > Along with that, I have reduced the number of times 'attr' is used: > > > > i.e. > > $("<a>").attr({'title' : 'Foo', 'rel' : 'myrel', 'href' : 'javascript:;'}) > > > > becomes: > > $("<a>").title('Foo').rel('myrel').href('javascript:;') > > I'm curious why you have done this? > > Those helper methods might be deprecated from the core in the 1.1 release. > > -- > Brandon Aaron
I've changed it to use attr to set attributes (addClass is still used to set the class) and noticed that 'val' was used instead of attr to get the value (so that has been fixed too). Download link is till the same. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/