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

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -