0

I tried to write the auto-clicking function on a web page:

var button = document.getElementById('send_order_btnSendOrder');
setInterval(function(){button.click()}, 200)

it works correctly , now after each auto clicking i want these values will be located in fileds.

document.getElementById('send_order_txtPrice').value = "24030";
document.getElementById('send_order_txtCount').value = "5";

I mean setting values after autoclaving repeatedly. how should I change my code?

Mamun
  • 66,969
  • 9
  • 47
  • 59
  • Please describe your question in a better way. Maybe post some more code examples and describe what problem you're trying to solve. Otherwise I believe no one will be able to help you. – sznowicki Apr 17 '20 at 11:46

1 Answers1

0
var button = document.getElementById('send_order_btnSendOrder').addEventListener('click', function())


And then removeEventListener('click', function())