I sincerely don't think that something like $(el).val( $(another) ) would be useful. I agree with the others, i looks confusing. Reduce the code at this point is not necessary. Something like $(el).copy( another, 'property' ) (Brandon Aaron's idea) would be much more better.
About toggling values, using $(el).attr('property', 'value 1', 'value2') is a great idea. It would save some chars of code. Make the syntax simpler is important, but keep the code understandable and explicit is even more. On Fri, Sep 26, 2008 at 4:27 PM, John Resig <[EMAIL PROTECTED]> wrote: > > > I meant this syntax ( $("#id").val(another jQuery Object) ) is a > > little confused, at least incompatible with living syntax of jQuery. > > ( .append(jQuery Object) ) > > How is it incompatible? Previously it would just completely break (or > inject garbage into the val, text, attr, css). At least now we can get > their expected value. > > --John > > > > -- E. Myller ( www.emyller.net ) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to jquery-dev@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---