Jump to content
Killersites Forums

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?

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
Link to post
Share on other sites
  • 4 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...