Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function() {
- $(':text,:password').live('focus',function(event) {
- if (typeof event.target.original_value == "undefined") {
- event.target.original_value = event.target.value;
- }
- if (event.target.value == event.target.original_value) {
- event.target.value = '';
- }
- $(event.target).css('color','#000')
- });
- $(':text,:password').live('blur',function(event) {
- if (event.target.value == '') {
- event.target.value = event.target.original_value;
- $(event.target).css('color','#999')
- }
- });
- });
Add Comment
Please, Sign In to add comment