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 ArticleBy: Anonymous
Very Nice utility snippet. Though the needs are slightly different but this can be used. Raj
View ArticleBy: 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 ArticleBy: 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 ArticleBy: 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 ArticleBy: Dagomar
That is a lifesaver! Took me about 5 minutes to implement this on a Drupal site! Thanks!
View ArticleBy: LearnWebCode
Thanks for posting this! I’m a jQuery beginner and this was exactly what I needed .
View ArticleBy: 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 ArticleBy: Anonymous
Very Nice utility snippet. Though the needs are slightly different but this can be used. Raj
View ArticleBy: 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 ArticleBy: 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 ArticleBy: 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 ArticleBy: Dagomar
That is a lifesaver! Took me about 5 minutes to implement this on a Drupal site! Thanks!
View ArticleBy: LearnWebCode
Thanks for posting this! I’m a jQuery beginner and this was exactly what I needed :).
View Article
More Pages to Explore .....