Well as you know I’ve been trying out MooTools recently, including starting a new series “Journey Into MooTools” at thewebsqueeze.com. And I have to say I really like it, especially creating elements. For example, I find:

var img = new Element("img", {
src: 'myimage.jpg',
'class': 'galleryimg',
alt: 'Check out this image'
});

Nicer than:

var img = $("<img /">).attr("alt", "Check out this image").attr("src", "myimage.jpg").addClass("galleryimg");

MooTools is the first one. I love it! If there is a nicer way to do it in jQuery (I can’t find one but I have a feeling there should be) then please let me know!

Post to Twitter Post to Delicious Post to Digg Post to Facebook Post to Ping.fm Post to StumbleUpon