Jump to content

[SOLVED] Text in a field. n00by Question.


maxic0

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/46568-solved-text-in-a-field-n00by-question/
Share on other sites

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.

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.