<html>
<meta charset="utf-8" />
<style >
.ppp{
width:600px;
height:300px;
background-color:pink;
}
</style>
<input type="text" id="ttt" name="" value="" maxlength="" placeholder="" /> <br /><br /><br />
<div class="ppp"></div><!-- -->
<script src="jquery-1.7.2.min.js"></script>
<script>
$("document").ready(function(){
$("#ttt").keyup(
function(){$(".ppp:first").html(this.value)}
)
});
</script>
</html>
input输入什么div图层显示什么,布布扣,bubuko.com
时间: 2024-10-21 12:43:19