Jump to content
Killersites Community
Sign in to follow this  
Landslyde

Textarea Filling With Blank Spaces

Recommended Posts

I have a form with a textarea. Every time I load the page, I can't see the placeholder text because blank spaces magically appear in the textarea box. I have to click inside it and drag my mouse to capture all the blank spaces to delete them out. This happens on every textarea box I set up. All my input boxes show their placeholder text except this one. Just looks kinda tashy. Is this a known issue with textarea boxes? Is there something I can do to make sure the box is cleared out upon loading my form?

Share this post


Link to post
Share on other sites

What does the code for your textarea look like? Do you have spaces between <textarea> and the closing </textarea> ?

 

Is this considered "spaces" between those tags?

<p>
    <label for="details" class="label">case details:</label><br>
    <textarea class="txtarea" rows="14" cols="50" name="details" placeholder="Case Details" value="<?php if (isset($_POST['details'])) { echo $details; } ?>">
    </textarea>
	<span class="error"><?php echo $detailsErr;?></span>
</p><br>

UPDATE: I wld have never thought that butting the tags together cld make such a difference, but your suggestion was the ticket. Many thanks, Ben. Very much appreciated.

Edited by Landslyde

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×