form.addEventListener('submit', function(){}), the 'form' which will be submitted is whichever form held the particular type = "submit" button triggering that form submit. id = "form__mobile"), which only contains a 'title' search input and the submit button. id = "form__modal").. so when I hit submit on either one, it's only searching on the inputs that were grouped into the form with that submit button, when I need the modal to act like an extension of the same mobile form and vice versa.form__mobile" submit button, only the 'title' input will be submitted.


Join the Discord to ask follow-up questions and connect with the community
A friendly place for developers to meet other devs, ask questions, get help, and just have a good time 🙂.
35,928 Members
Join