Wednesday, 20 August 2014

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