Hi there!
I guess I need help on this one.
I'm not new to Javascript but then I realize I don't know how to use setTimeout().
I have tried this:
$(document).ready(function(){
setTimeout('changeit()',1000); // I have also tried setTimeout('changeit',1000);
// var t = setTimeout('changeit()',1000); <--- tried also something like this.
// changeit(); <-- works when i do this.
function changeit(){
$('#hello').html('Hello World - this was inserted using jQuery');
// #hello is <p id="hello">Hello World</p>
}
})
Can anyone help me with this one.
Please make me realize something.
Thanks.