Answer the question
In order to leave comments, you need to log in
JS, How to check if an element with a certain ID exists on the page?
Question for the experts! I'm not strong in JS, so please help!
...
document.getElementById('поле').setAttribute('value', значение);
...
Answer the question
In order to leave comments, you need to log in
document.getElementById('поле') && document.getElementById('поле').setAttribute('value', значение);;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question