If you know the div is empty, and you just want to put a string in it, you could do this instead:
$('#emptyDiv').text(str);

If you're not sure it's going to be empty, you could try this:

var $maybe = $('#emptyDiv');
if $maybe.is(':empty') {
  $maybe.text(str);
} else {
  $maybe.append(str);
}



--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com



On May 27, 2007, at 5:10 PM, [EMAIL PROTECTED] wrote:


well, I've developed an admin system which rely heavely on jQuery.

But, safari can't seem to append html to empty div's (or perhaps any
div) - is there a fix to this?


im doing something like this:

var str = 'lorem ipsum';

$("#emptyDiv").append(str);


But nothing happens, works in firefox though =/


Reply via email to