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

Popular posts from this blog

node.js - How to mock a third-party api calls in the backend -

java - Could not locate OpenAL library -

Non Unique Username with ASP.Net Identity 2.0 -