Orionsbelter Posted November 7, 2009 Share Posted November 7, 2009 I need the code, that allows me to have some text such as "Search..." already in a textfeild then when the user click to type it remove the word. as seen on many sites. Thanks Link to comment https://forums.phpfreaks.com/topic/180682-textfield-click-remove/ Share on other sites More sharing options...
Orionsbelter Posted November 7, 2009 Author Share Posted November 7, 2009 got it "onclick="JavaScript: alert(document.getElementById('c1').value ); document.getElementById('c1').value = '';"" Link to comment https://forums.phpfreaks.com/topic/180682-textfield-click-remove/#findComment-953285 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.