Response title
This is preview!
jethogan wrote:My query is -
1. Is this a known occurence or my imagination?
2. Is it possible to add a callback function into empty() so that append() will only execute after empty() has completed its execution?
3. Any other remedies are welcomed.
$('#myDiv').empty();
setTimeout("blub()",100);
function blub()
{
if($('#myDiv').text() =="")
{
$('#myDiv').append(someText);
}else{
setTimeout("blub()",100);
}
}
© 2013 jQuery Foundation
Sponsored by and others.