Multiple modal pop has forms on clicking submit, i am able to get the values of the first pop up but am not able to get the form values of the other two pop ups

I have created multiple optional modal pop ups. Each pop up has a form where i get user input .When i click the first submit button, i get the values, but when the user clicks on the search more details button to fill in a second or a third pop up when he clicks submit button, the forms suddenly dissappers as if it submits.

I am using Classes, i am relatively new to java script but i am feeling quite frustrated after trying this for several days now.

Someone please help.

The code is a available here