Hi Dave! > > Currently val() is only a shortcut, but doesn't encapsulate anything > > useful. It would be nice to have it handling some more stuff. > > I wouldn't like to have it in an external plugin, that makes it > difficult > > to access or find it when you actually need that functionality. > > Right now val() is a macro that means .attr('value') and I agree it isn't > pulling much weight. Without a rescue it looks like it will be gone in > jQuery 1.1. But there is probably some way only a few characters longer > that > could do the job. > > [...] > > I know they are slightly longer but they are also self-documenting. Once > you > know how the basic concepts of selectors and two methods you are golden. > With a special val() method we are headed down the road of having a core > full of unique special-purpose methods that each need to be documented as > to > their behavior.
I like attrs. Well at least the functionality, not so much the name. It fits well into jQuery's concept of handling a selection instead of only single objects. And it can be used for many other cases, while an extended val() would be very specialized. My conclusion so far: Add attrs(), remove val() and other shortcuts, and allow them via a shortcut function. -- Jörn Zaefferer http://bassistance.de -- "Ein Herz für Kinder" - Ihre Spende hilft! Aktion: www.deutschlandsegelt.de Unser Dankeschön: Ihr Name auf dem Segel der 1. deutschen America's Cup-Yacht! _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/