如何能让左边文本框里的内容动态添加到右边文本框里呢?
本人在学习阶段想到这样的一个方法,利用点击事件动态的添加内容
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
#sel1{
width: 180px;
height: 200px;
font-size: 14px;
outline: none;
float: left;
}
#btns{
font-size: 14px;
padding: 10px;
float: left;
width: 30px;
height: 7opx;
margin: 0 10px;
}
#btns button{
margin-top:6px;
display: block;
width: 40px;
height: 20px;
}
#sel2{
width: 180px;
height: 200p