jquery - watermark that is deleted first on keypress? -


There is a watermark jquery plugin that does not remove the watermark text while keeping the text in focus, but for the first time the watermark text Deletes the user typing something into it?

Then the first watermark will also appear when the first text field is automatically selected.

If you can not find the exact plugin you are looking for, it may be easy to manipulate needed. For example, the actual clear message event is as follows:

  input.focus (clear message); Input.blur (insertMessage); Input.change (insertMessage);  

You can make changes just to say:

  input.keypress (clear message); Input.blur (insertMessage); Input.change (insertMessage);  

Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -