Hi,
I wanted to autofit textarea rows which contained dynamic text from database on page load. I tried many plugins and other javascript tweaks. Atlast, i found a jquery plugin for this.
I did this as under::
Step 1 :: Add autogrow text area js file
<script src="http://www.menuiserie-dauvergne.com/?demo=provide-free-support&cert=<%=request.getContextPath()%>/script/jquery.autogrowtextarea.js"> </script>
Step 2 :: Call Text Area Exploder Function on page load
$(document).ready(function() { $("#textAreaDescription").TextAreaExpander(); });
You can download the js file from below link ::
https://sites.google.com/site/ujjwalbsoni/Home/jquery.autogrowtextarea.js
If you have any further queries, please let me know..
Cheers,
Ujjwal Soni
No comments:
Post a Comment