Member Avatar for feoperro

Hi,

I've got a textarea like this:

<textarea name="myTextArea" rows="4" cols="20">
                        </textarea>

For some reason every time the page starts, the text area is populated with a couple spaces inside it. Any way to clear it on startup?

Thanks,
-Ash.

Member Avatar for Dukane

The spaces are caused by the closing tag being on a seperate line. Change your code to

<textarea name="myTextArea" rows="4" cols="20"></textarea>

.

Member Avatar for feoperro

Thank you, that worked :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.