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?
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> ?
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
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>
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now