change default input text

Hi
Is there any way how to change default text in input when user start typing? I have got two inputs and button and when user set focus on first input and when he starts typing it will erase default text and change text to what user type and when hit enter key it set focus to second input. But when user set focus on input and hit enter without any text change, default input text stays and focus will be set to second input.

Hi
Try to use property ‘placeholder’:
msdn.microsoft.com/en-us/library … 85%29.aspx
It must be fine in Firefox/Chrome/IE10, but for previous IE versions you need to use to get input object via ‘getInput()’ method and attach event manually with ‘attachEvent()’.