Revision: 55497
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at February 9, 2012 09:21 by hubbske
Initial Code
$('#ctl00_ctl05_ctl00_UserNameText').attr('value', 'username'); $('#ctl00_ctl05_ctl00_UserNameText').focus(function() { if (this.value == 'username') {this.value = '';} }); $('#ctl00_ctl05_ctl00_UserNameText').blur(function() { if (this.value == '') {this.value = 'username';} }); $('#ctl00_ctl05_ctl00_PasswordText').attr('value', 'password'); $('#ctl00_ctl05_ctl00_PasswordText').focus(function() { if (this.value == 'password') {this.value = '';} }); $('#ctl00_ctl05_ctl00_PasswordText').blur(function() { if (this.value == '') {this.value = 'password';} });
Initial URL
Initial Description
Adding input values and clearing on focus
Initial Title
Adding input values and clearing on focus
Initial Tags
forms, jquery
Initial Language
jQuery