/ Published in: JavaScript
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
<input type="text" onfocus="if(this.value == 'value') { this.value = ''; }" value="value" />
URL: http://css-tricks.com/snippets/javascript/clear-field-on-focus/
Comments
 Subscribe to comments
                    Subscribe to comments
                
                