Good all the time of day.
The page loads the form with input'ami. The input values are already pre-filled. Let us suppose:
<input name="d11" value="<? echo $d11; ?>"> <input name="d12" value="<? echo $d12; ?>"> .... <input name="d19" value="<? echo $d19; ?>">
Also on the page there are other input'y (belong to a different form)
<input name="r11" value=""> <input name="r12" value=""> .... <input name="r19" value="">
Question: Is it possible, after loading the page, to automatically copy all the values from the inputs in the first form, i.e. With emit pressing Ctrl + C, and paste the copied values into the inputs in the second form?
I will explain.
- Of course, you can do this in the page code. So I can. I ask for another reason.
- You can write lightweight js code that aligns the values, where necessary, to what you need. I need to imitate this action precisely as if the person himself copied and pasted it
- Copy the code - not that. get a new EXACTLY equal to the copied. when you do Ctrl + C and Ctrl + V - this is not always accurate. that's what i need
ps Actually I really hope to get an answer, and I am ready to generously award experience points to the respondent.
pps Please enter the position due to the influence of black forces.
I will add after a couple of hours of tips for IE (copy only):
<script> window.clipboardData.setData('text', 'Этот текст в буфере'); </script> // осталось дописать вставку