Home > Web Front-end > JS Tutorial > Briefly describe the implementation method of simultaneous input in two text boxes

Briefly describe the implementation method of simultaneous input in two text boxes

巴扎黑
Release: 2017-09-26 09:41:26
Original
2215 people have browsed it

The following editor will bring you an example of inputting two text boxes at the same time. The editor thinks it’s pretty good, so I’ll share it with you now and give it as a reference. Let’s follow the editor and take a look.

The example is as follows:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title></title>
</head>
<body>
<script language="javascript">
function copyob1toob2(){
  document.all["ob_text_2"].value=document.all["ob_text_1"].value
}
</script>
<input type="text" id="ob_text_1" size=20 onkeyup="copyob1toob2()">
<input type="text" id="ob_text_2" size=20>

</body>
</html>
Copy after login

The above is the detailed content of Briefly describe the implementation method of simultaneous input in two text boxes. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template