Hi jk, May I suggest you moved on and consider any of [1], e.g.:
jQuery(someDomNode).append('<p>Hello world</p>'); jQuery(".someCssClass").append('<p>Hello world</p>'); -> adds to all of this class jQuery(".someCssClass:first").append('<p>Hello world</p>'); -> adds to first element of this class jQuery("#someId").append('<p>Hello world</p>'); -> adds to element with that id [1]http://docs.jquery.com/Core Tobias. jk wrote: > fair enough, but the one-liner version still does not work correctly. > if I don't capture the createElement method first in a variable, it > will append the only the text to the body. > compare the difference: > > http://jksjs.s3.amazonaws.com/ce1.html and > http://jksjs.s3.amazonaws.com/ce2.html --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to tiddlywiki@googlegroups.com To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en -~----------~----~----~----~------~----~------~--~---