So, I am trying to change background of two input fields after the document loads. I use this jquery code:
$(document).ready(function() {
$('#login').css('background', "url('login-bg.gif') 3em center no-repeat");
$('#password').css('background', "url('password-bg.gif') 3em center no-repeat");
});
I have looked at the code in the Firebug and it seems alright. However, the input fields don't change their background.
If I just set their background in the stylesheet it works (I want to do it with jquery though because I want to change the background of the fields after various events take place).