随着textarea 输入内容 自动增加高度
<script type= "text/javascript" >
$( ".input_textarea" ).each(function(){
this .style.height= this .scrollHeight+ ‘px‘ ;
});
$( ".input_textarea" ).bind({
input:function(){
this .style.height= this .scrollHeight + ‘px‘ ;
},
propertychange:function(){
this .style.height= this .scrollHeight + ‘px‘ ;
}
});
</script>
|