Is there any difference in speed between:
$('<div>', {id: 'bla', click: func, css: { opacity:0.5 } }
and doing it all inline?
$('<div id="bla" style="opacity:0.5"></div>').click(func);
What does jquery do internally for the second example? Just call .innerHTML or does it try to parse it and then do it exactly the same was as the first example?