Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Makes an input field clear and unclear itself with javascript
JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
README.rdoc
self_clearing_input.js
test.html

README.rdoc

About

Sets up a simple self-clearing input field. When you click in a field the default value is cleared and when you blur the field it reverts back if the user doesn't enter any data.

Requires

  • Prototype 1.6.*

Example

// In your javascript file somewhere
document.observe("dom:loaded", function()  
{  
    new SelfClearingInput('ID_OF_INPUT_BOX');  
});
Something went wrong with that request. Please try again.