This is my Fiddle
Everything is written in the fiddle.
What the problem is:
I want the text to disappear when I select to start typing something in my input.
-
If i focus on the input, I want the
to disappear, and only reappear if i havent typed anything in,
-
If i have something typed in my text input, i want the hide to stay that way.
I honestly have no clue how to do this, and i gave a bs attempt at it to show what i mean
thank you so much for your help!
Use
.blur()to detect when the input loses focus, and then test if its length is0using.val(). If it is,showthepagain:DEMO.