Landslyde Posted February 18, 2015 Report Posted February 18, 2015 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? Quote
falkencreative Posted February 18, 2015 Report Posted February 18, 2015 What does the code for your textarea look like? Do you have spaces between <textarea> and the closing </textarea> ? Quote
Landslyde Posted February 18, 2015 Author Report Posted February 18, 2015 (edited) 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 February 18, 2015 by Landslyde Quote
najathi Posted December 23, 2019 Report Posted December 23, 2019 I face the same problem now. The problem I have set intentions. <textarea> </textarea> I remove the indentation that's working now. <textarea></textarea> Quote
Recommended Posts
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.