Thursday, March 1, 2018

set place holder value in form using javascript

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 = ''; }"

No comments:

Post a Comment