i have some code that is executed by a checkbox which then executes after a given time the it runs some code with a function name "ee()", I've texted it with alert and it doesnt execute whatsoever and instead stays dull the code is below please explain;
if (rap.checked == true){
setTimeout(function () {
ee();
}, 100);
} else {
}
I need so see more code before answering, One possible thing is that it's being run right as the script is loaded. To fix that, you have to put it into a function like this. And then have the function be pointed to by a button.
function name(params) {
if (rap.checked === true) {
setTimeout(function() {
ee();
}, 100);
} else {
}
}