Today, a friend asked me about how to use JAVASCRIPT to transfer data between various forms on the page. I wrote it before, but I never paid attention to it. Today I have summarized it, I hope to give you some help and summarize the previous and used knowledge. & Nbsp; 1. The simplest is SyntaxHighlighter of the same network.
Today, a friend asked me about how to use JAVASCRIPT to transfer data between various forms on the page. I wrote it before, but I never paid attention to it. Today I have summarized it, I hope to give you some help and summarize the previous and used knowledge.
1. The simplest thing is to transfer data from forms on the same webpage.
For example, a webpage has two forms, one text box and one button in each form. Click the button to operate on the value of the text box of the other party. The example here is to pay one text box to another. The specific HTML code is as follows:
Untitled Document
The above is the HTMl code. You may have noticed the onclik Code. There are two functions, followed by the JAVASCRIPT code: