html - Placeholder text not showing in textarea when generated with javascript (tags on the same line) -


the placeholder text not showing in text area created javascript until click box.

var input = document.createelement("textarea"); input.rows = "2"; input.placeholder = placeholder; 

i've read lot of same questions , because textarea tags on different lines however, tags generated javascript , when @ source tags on same line , there appears nothing between tags. htm generated is:

<textarea placeholder="enter here" rows="2"></textarea> 


Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -