$(document).ready(function() { // #login-box password field $('#password').attr('type', 'text'); $('#password').val('Password'); }); This is supposed to change the #password input field (with id="password") that is of type password to a normal text field, and then fill in the text “Password”. It doesn’t work, though. Why? Here is the form: <form enctype="application/x-www-form-urlencoded" method="