I want to perform a certain function using Javascript after 2000ms
document.querySelector('[name="4109~~0~0~0~18291930$txtValue"]').value = 'APPLE';
For this I have set the code as:
function fireTheSubmitEvent() {
setTimeout(fireTheSubmitEvent, 2000)
document.querySelector('[name="4109~~0~0~0~18291930$txtValue"]').value = 'APPLE';
}
But it is not firing. Where am I going wrong?. Please guide.