3

I have a problem with placeholder text not showing up in the comments block of this code. The form is pretty basic, and is setup in a table like the code below. Placeholder works for all other elements in form like the phone in the example below. Could somebody please key me in on what I am doing wrong?

 <td valign="top">
 
  <input  type="text" placeholder="555-555-5555" name="telephone" maxlength="30" size="30">
 
 </td>
 
</tr>
 
<tr>
 
 <td valign="top">
 
  <label for="comments">Comments *</label>
 
 </td>
 
 <td valign="top">
 
  <textarea placeholder="text"  name="comments" maxlength="1000" cols="25" rows="6" >  </textarea>
 
 </td>   
Matt Blade
  • 33
  • 1
  • 5

1 Answers1

7

Try deleting the whitespaces:

<textarea placeholder="text" name="comments" maxlength="1000" cols="25" rows="6"></textarea>
Aiken
  • 272
  • 1
  • 8
  • Thank you much. I guess knowledge is power. Worked like a charm. – Matt Blade Apr 21 '15 at 01:40
  • 1
    Yes, I also used to remove whitespace when I face with this problem. I dont know why It is taking care of whitespaces while other html elements not caring about?. – Akilsree1 Apr 21 '15 at 02:38