javascript - getting an error there is no attribute "placeholder" in xhtml strict 1.0 -
i realize placeholder html 5 believe. there alternative placeholder?
i have use xhtml strict 1.0 it's requirement.
xhtml support placeholder because xhtml mix of xml & html. function works won't validate because validation methods haven't caught new coding principles. use alternative validate;
<input type="text" onfocus="if (this.value==this.defaultvalue) this.value = ''" onblur="if (this.value=='') this.value = this.defaultvalue" value="your placeholder text here" />
Comments
Post a Comment