Quantcast
Channel: Comments on: Unobtrusive “clear searchfield on focus”
Browsing all 20 articles
Browse latest View live

By: Jörn

@Connor: The last line in the example shows the usage. Put the function into some library file, and use it elsewhere as you need it.

View Article



By: Anonymous

Very Nice utility snippet. Though the needs are slightly different but this can be used. Raj

View Article

By: Anonymous

Quick question. I wanted to use something like this for someone to enter a donation or a price for a product, etc. How would I go about having it so when the user clicks on it the default value...

View Article

By: Anonymous

Nevermind, I figured it out. $(“#s”).focus(function() { if( this.value == this.defaultValue ) { this.value = “$”; } }).blur(function() { if( !this.value.length || this.value == “$” ) { this.value =...

View Article

By: emptywalls

Thanks very much for this. I am doing the javascript replacement with jquery on the new company site, and this is exactly what I needed.

View Article


By: Dagomar

That is a lifesaver! Took me about 5 minutes to implement this on a Drupal site! Thanks!

View Article

Image may be NSFW.
Clik here to view.

By: ana

Great script! Very useful for a jquery dummy

View Article

Image may be NSFW.
Clik here to view.

By: midday

>>works_as_espected? =>true thanks

View Article


Image may be NSFW.
Clik here to view.

By: ravi

thanks a lot i tried it. works perfectly

View Article


Image may be NSFW.
Clik here to view.

By: LearnWebCode

Thanks for posting this! I’m a jQuery beginner and this was exactly what I needed .

View Article

By: Jörn

@Connor: The last line in the example shows the usage. Put the function into some library file, and use it elsewhere as you need it.

View Article

By: Anonymous

Very Nice utility snippet. Though the needs are slightly different but this can be used. Raj

View Article

By: Anonymous

Quick question. I wanted to use something like this for someone to enter a donation or a price for a product, etc. How would I go about having it so when the user clicks on it the default value...

View Article


By: Anonymous

Nevermind, I figured it out. $(“#s”).focus(function() { if( this.value == this.defaultValue ) { this.value = “$”; } }).blur(function() { if( !this.value.length || this.value == “$” ) { this.value =...

View Article

By: emptywalls

Thanks very much for this. I am doing the javascript replacement with jquery on the new company site, and this is exactly what I needed.

View Article


By: Dagomar

That is a lifesaver! Took me about 5 minutes to implement this on a Drupal site! Thanks!

View Article

By: ana

Great script! Very useful for a jquery dummy 🙂

View Article


By: midday

>>works_as_espected? =>true thanks 🙂

View Article

By: ravi

thanks a lot i tried it. works perfectly 😀

View Article

By: LearnWebCode

Thanks for posting this! I’m a jQuery beginner and this was exactly what I needed :).

View Article
Browsing all 20 articles
Browse latest View live




Latest Images