maxic0 Posted April 11, 2007 Share Posted April 11, 2007 Hi, i was just wondering how.. When you see an input box and it allready has writing in it. eg "Write your comment here." when you click on the input box the text disappears, then if you havent typed anything in and you click away, that text appears again. How do i do that? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/46568-solved-text-in-a-field-n00by-question/ Share on other sites More sharing options...
wildteen88 Posted April 11, 2007 Share Posted April 11, 2007 This does not require PHP in way shape or form This is purely javascript. Look into the on onfocus and onblur attributes for the input tag. ALso look for similar scripts over at dynamicdrive.com - they are bound to have some form of script. Quote Link to comment https://forums.phpfreaks.com/topic/46568-solved-text-in-a-field-n00by-question/#findComment-226676 Share on other sites More sharing options...
maxic0 Posted April 11, 2007 Author Share Posted April 11, 2007 Oki thanks. Quote Link to comment https://forums.phpfreaks.com/topic/46568-solved-text-in-a-field-n00by-question/#findComment-226677 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.