最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

基于jquery的讓textarea自適應(yīng)高度的插件

 更新時間:2010年08月03日 00:38:12   作者:  
jquery extension - auto height text area
Introduction
1. This textarea is like the google calendar's description when you create one new or update one existence calendar;
2. Its height will be changed accroding to user's input;
3. Its scrollbar is removed, which makes it much user friendly. I guess you may like it.

Using the code

1. import the jquery.js and textarea.js
<script language="javascript" type="text/javascript" src="js/jquery.min.js"></script>
<script language="javascript" type="text/javascript" src="js/textarea.js"></script>

2. add the following css
<style type="text/css">
.autoHeight{border:1px solid #666666; width:300px; height:60px; line-height:20px; font:11px verdana; overflow:hidden;}
</style>

3. add one textare html control
<textarea class="autoHeight" id="textarea1"></textarea>

4. make it works
<script language="javascript" type="text/javascript">
$(document).ready(function () {
$(".autoHeight").TextAreaAutoHeight();
});
</script>

相關(guān)文章

最新評論

黄浦区| 防城港市| 扎兰屯市| 英超| 黎川县| 育儿| 景谷| 德化县| 柳江县| 两当县| 阜新| 行唐县| 仪征市| 友谊县| 高邮市| 漠河县| 富裕县| 富民县| 巩留县| 海淀区| 岐山县| 左云县| 平罗县| 定西市| 桑日县| 美姑县| 盐边县| 通许县| 信丰县| 温州市| 娱乐| 曲水县| 内黄县| 盐山县| 正宁县| 新建县| 阜平县| 泰顺县| 绵竹市| 文化| 郴州市|