[jQuery] Re: looking for plugin that presets values in text box

2008-01-07 Thread McLars
How about just using tooltips (or clueTips), instead of all that custom code for each field? You could even attach the tooltip on a little icon or question mark next to each field. Larry Kevin Scholl wrote: > The plugin toggleVal (written by a colleague of mine) might be of some > interest to

[jQuery] Re: looking for plugin that presets values in text box

2008-01-06 Thread Kevin Scholl
The plugin toggleVal (written by a colleague of mine) might be of some interest to you. http://plugins.jquery.com/project/toggleval 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

[jQuery] Re: looking for plugin that presets values in text box

2008-01-06 Thread [EMAIL PROTECTED]
On Jan 6, 11:00 am, Dave Methvin <[EMAIL PROTECTED]> wrote: > > $('form#myform [EMAIL PROTECTED]').val('please enter > > here').click(function() { > > if (this.value == 'please enter here') this.value = ''; > > }); > > The downside to changing the value attribute is that the "please enter > he

[jQuery] Re: looking for plugin that presets values in text box

2008-01-06 Thread Dave Methvin
> $('form#myform [EMAIL PROTECTED]').val('please enter > here').click(function() { > if (this.value == 'please enter here') this.value = ''; > }); The downside to changing the value attribute is that the "please enter here" text will be submitted with the form if the user doesn't enter any va

[jQuery] Re: looking for plugin that presets values in text box

2008-01-06 Thread [EMAIL PROTECTED]
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 b

[jQuery] Re: looking for plugin that presets values in text box

2008-01-06 Thread Morgan Allen
$('input').focus(function() { $(this).val(null); }); On Jan 5, 2008 8: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 w