开发者

Creating extra rows in TextArea when input has reached the end of the field?

开发者 https://www.devze.com 2023-03-12 23:35 出处:网络
When typing in a new faceb开发者_如何学JAVAook comments box the height of the textbox changes according to how many lines the box has. What would be the best way to implement this?Try elastic http://u

When typing in a new faceb开发者_如何学JAVAook comments box the height of the textbox changes according to how many lines the box has. What would be the best way to implement this?


Try elastic http://unwrongest.com/projects/elastic/


Perhaps this will help: https://github.com/jaz303/jquery-grab-bag/blob/master/javascripts/jquery.autogrow-textarea.js


The hight of comment box is standard one. You can only define the width of the comment box. Height will be automatically adjusted.

<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:comments href="example.com" num_posts="2" width="600"></fb:comments>
0

精彩评论

暂无评论...
验证码 换一张
取 消