5
How can I delay a function, being that checkboxs are generated dynamically, in the conventional way in javascript, and only run after the whole page is rendered and the other Avascripts are executed?
I’m trying to use that code:
var count = 0;
$('input:checkbox').click(function(){
if( $(this).is(':checked') ){
count++;
}else{
count--;
}
$('#count').html( count );
});
And this to show in html:
<p><div id="count">0</div></p>
It worked, vlw man!!!
– Marcello Infoweb