How do I enter a value into input with autocomplete = "off"?
There is an input
<input type="tel" id="card" autocomplete="off" class="form-control">
In the console, run:
document.querySelector('#card').value = 'Вставляемый текст';Anonymous
What's the problem then? This attribute does not restrict you in any way to use js.
document.getElementById('card').value = 'Ваше значение'Anonymous
I'm sorry, I figured it out, looked inattentively, there was an iframe and this form in it. Thanks a lot to those who helped me!Anonymous
To place the code, please use CodePen or similar tool. Thanks you!