When i use this code i see that for the first time itself the textarea is not empty and has extra tab spaces.It has value like "\t\t\t\t\t\t\t\t..." .The tabs(\t) are automatically in textarea even before i enter any data.I am trying to get rid of these tabs for the first time.Can anybody help me??
Ashish K Sharma
Ranch Hand
Joined: Aug 22, 2006
Posts: 31
posted
0
Hi, Need more info about your prob to have a better idea. You can always trim the value anyways. Check you onload function or any other code whether you are doing something with textarea on startup.
This is not the correct way of using the textarea element. The 'value' attribute wont make a difference to the contents seen in the textarea. You create textarea as follows:
This will show the 'some text value' string as the contents of the textarea. So, in your case, make sure you dont have any spaces/tabs between the opening <textarea> tag and the closing </textarea>
The other alternative that you have is to clear the contents of the textarea during the onload of the body. Here's an example:
Divya Guttikonda
Ranch Hand
Joined: Mar 09, 2005
Posts: 47
posted
0
Thanks everybody.I worked out for me trying to clear out the data in body onload() function.Actually i thought it is related to wrap="virtual" attribute that i have used.I figured it out that it is not related to wrap attribute.Anyways thanks a lot for your replies.