On 11 11 , 6 58 , VK <schools_r...@yahoo.comwrote:
On Nov 11, 5:50 pm, aaabb...@hotmail.com wrote:
the code is like following:
<textarea cols=40 rows=10 name=n style="overflow:auto"this is a test
about textarea and see how it works..... </textarea>
can i assign a variable to rows based on my contents length? or
javascript has any internal attribute i can use?
Do you want to make it once on page loading or at any time after page
loaded?
It is html builder to create a html file. The reason is my content
change often. sometimes may be just
one line or two, if set row=10, it wast more space.
what I basic idea is use string length to check my contents (may use a
function to check it), then based on that assign a var. to rows. Is
it possible? also if the content is longer that 10 rows, use
scrollbar.