timeout tests

by toubia95

JavaScript

setTimeout(function(){ 
	$('body').html("<div id='test'></div>");
}, 1000);

myTest();

function myTest() {
if ( $( "#test" ).length ) {
  $( "#test" ).html("<strong>Number : </strong>");
} else {
	setTimeout(function(){ 
		myTest();
	}, 100);
}
}