put below validation in text field as attribute.
onBlur="if(this.value == '') { this.value = 'Enter Your Name'; }" onFocus="if(this.value == 'Enter Your Name') { this.value = ''; }"
onBlur="if(this.value == '') { this.value = 'Enter Your Name'; }" onFocus="if(this.value == 'Enter Your Name') { this.value = ''; }"
No comments:
Post a Comment