thanks for ur reply.although thats not exactly what i m looking for.i have achieved the changing background color effect by using the following code.but i want my default value to disappear and reappear as well on focus and blur respectively.
Toggling default value and background color of a textfield on mouse click?
I m designing a webpage where I have a searchbox.I have set a default value to the textfield and set the background color to gray.Now I want the default value to disappear as well as background color to change to white on focus.How to achieve that?Please help!
Leave a comment: