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
Post a Comment