I am trying to remove watermark of text box on enter of first character I have written event of key press, after enter of key it returns length of zero on first character. I tried key up, problem with key up is when some one holds continuously the key the water mark doesn't hide:
The water mark doesn't hide on
Please help me out
Is there any event detects the on change of text box for first character and copy paste..
keypress event happens before the key is accepted by the
<input>. (People use this to prevent the
<input> from accepting the event.) You want to use the
input event, which fires after the value has changed.
Edit: reread question. It looks like poster wants the onchange event for the input