How to open same window, but to handle different values?
There are two buttons and two headers. When you press any of the buttons opens the same window. There are input, into which you can enter a value (text). But the input values must not overlap.
That is, if I clicked on the first button, the window opened, I put the values in the first title fit the text that I specified in the input.
Clicking the second button the button again the window opened, and when writing a text, it fits in the second header.
Need to automate the process. Let these buttons STO. Of course, I don't want to register the function for each button to open a new window with the new input.
Hope the challenge is clear. Tell me how it can be implemented. Thank you in advance for your help.
Tried to write not optimal, but simpler
Any strange place Google or ask in the comments
Yes, I have nothing to do
leonard_Runolfsson7 answered on April 3rd 20 at 18:37
Naves buttons date attributes, when the click event cityway them, say to the function to open forms, perezapisi values of the parameters to this function. Approximately
Terry60 answered on April 3rd 20 at 18:39
Well, if the task is clear then look for a freelancer. For the specific question I do not see. And if you think this task as the question is not feasible for you, then divide it into subtasks, and therefore ask questions. And even better still attach your attempted implementation.