ublapach Posted April 22, 2008 Share Posted April 22, 2008 Can anyone tell me how to erase whats in a text box when you go to input somthing in it like the boxes intial value would go away when you clicked in it Link to comment https://forums.phpfreaks.com/topic/102274-form-boxes/ Share on other sites More sharing options...
zenag Posted April 22, 2008 Share Posted April 22, 2008 <html> <head> <script type="text/javascript"> function srch() { document.getElementById('search').value=""; } </script> </head> <body> <input type="text" onclick="srch()" name="search" id="search" value="search..." /> </body></html> Link to comment https://forums.phpfreaks.com/topic/102274-form-boxes/#findComment-523696 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.