Hi, > if( ! (e=$('#someID').length) ) > e = $('<p id="someID">asdf</p>').appendto('#myParent'); > e.hide();
Oops. if( ! (e=$('#someID')).length ) e = $('<p id="someID">asdf</p>').appendto('#myParent'); e.hide(); Just close the parentheses where they should be closed :-) Christof