jquery 实现input输入什么div图层显示什么
<html>
<metacharset="utf-8"/>
<style>
.ppp{
width:600px;
height:300px;
background-color:pink;
}
</style>
<inputtype="text"id="ttt"name=""value=""maxlength=""placeholder=""/><br/><br/><br/>
<div></div><!---->
<scriptsrc="jquery-1.7.2.min.js"></script>
<script>
$("document").ready(function(){
$("#ttt").keyup(
function(){$(".ppp:first").html(this.value)}
)
});
</script>
</html>
热门推荐
10 海员考试祝福语简短高级
11 岗位考试顺利祝福语简短
12 事业祝福语简短工作
13 邻家生小孩祝福语简短
14 财神祝福语简短情话文案
15 老师开工仪式祝福语简短
16 端午的祝福语毕业简短
17 虎年台词祝福语大全简短
18 姐姐生日霸气祝福语简短