And don’t work. So, how work with my class=“test” because if i change in my .js with my other class=“new-task” this code work. Why this code don’t work with the class of my button but he works with the class of my form ?
And don’t work. So, how work with my class=“test” because if i change
in my .js with my other class=“new-task” this code work. Why this code
don’t work with the class of my button but he works with the class of my
form ?
The submit event is fired when a form is submitted.
Note that submit is fired only on the form element, not the button or submit input. (Forms are submitted, not buttons.)
With my code in .js, I want that my button click change the value of the text field “name_equipement” in " Vlad " . This is only an example to design something else after .
However now, with my actually code I don’t arrive to change the value of the text fiel “name_equipement”.