Text disappear

Does anyone know how to make the text already in the input text box disappear when you click on it.

For example:
|enter email| - this is loaded when the page is loaded

|_________| - then disappears when you click to type

: : I thought it would be very simple, but i guess not : :

THANKS in advanced!

It is simple :slight_smile:

[AS]cta.text = “enter e-mail”;
cta.onSetFocus = function() {
this.text = “”;
};[/AS]

cta is the INSTANCE name of the textbox in this case (NOT VAR NAME!!!)

it’s simple indeed :)… give your field the instance name ‘myTextfield’, and have this code on the parent timeline

myTextfield.onSetFocus = function() {
	myTextfield.text = ""
}

copycat :stuck_out_tongue:

lol
you beat me this time:-\

Will i need the var name if it is needed for a php file

then you can say

you can simply go like myPHPvariable = myTextfield.text :slight_smile:

Thanks guys again for the fast advice!

dont thank me, thank lostinbeta :stuck_out_tongue: :trout:

No thank ahmed :stuck_out_tongue: :trout: