Answer the question
In order to leave comments, you need to log in
How to properly assign an action attribute to a tag?
Good day, tell me what I'm doing wrong?
I need to add the action attribute to the form tag with the address https://test.pages/example (the address does not exist, for example)
let serverUrl = 'https://test.pages/example';
let section = document.querySelector('.section ');
let form = section.querySelector('form');
form.setAttribute('action ', serverUrl );
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question