How do you implement such a feature?

Good night, there are item cards, they have a different name on one of the cards by clicking on the "ORDER" button POPs up a popup form that has three input of the first of them contains the product name and the two Email and telephone. You're not going to create a bunch of popups. Easier to make a script. The question is how
to realize?
Here is the website template
Screenshots also 5cf462b699099542318595.jpeg5cf462c57c8ad152610671.jpeg
Thank you in advance for your help.
March 23rd 20 at 18:50
1 answer
March 23rd 20 at 18:52
Passing the value in input using jquery like $('input[name=good_select]').val($(this).data('namegood'));

Find more questions by tags HTMLJavaScriptCSS