On Thu, Aug 30, 2012 at 3:24 AM, Daniel Werner daniel.werner@wikimedia.dewrote:
By the way, you can also use
$( '<div/>', { 'class': 'foo', 'title': 'myTitle', ... } );
Just be aware this also allows you to use things like 'html' and 'text' which are not attributes at all, but call .html() or .text() internally. There are also property aliases here.
In short - be aware of what the code does by reading the manual.
- Trevor