i Have a small script that need to change window.setInterval(function(){ value }, 1000); from text box and button.
i tried this code that is working, if i change rrrr id value from HTML code then its working, but not working from changing text box value after HTML render.
i need to change this value from text box and submit button.
My Try is :
var delay = document.getElementById("rrrr").value;
window.setInterval(function(){
$( "#button-next" ).click();
}, delay);
<input type="text" id="rrrr" value="1000" style="width:50">
<button id="rrrr">submit</button>
any suggestion so i should change ?