On Jan 5, 11:45 pm, Bhaarat Sharma <[EMAIL PROTECTED]> wrote:
> Hi,
>
> some time ago I saw a jquery plugin which would preset the value in a
> text box and when users' cursor came to that text box...the preset
> value would go away. it was sort of there to let the user know what
> format should be in this text field.

you don't need any plugin, jQuery can handle it directly:

$('form#myform [EMAIL PROTECTED]').val('please enter
here').click(function() {
    if (this.value == 'please enter here') this.value = '';
});

lihao(XC)

Reply via email to