How to change CSS using jQuery?
Ignore the people that are suggesting that the property name is the issue. The jQuery API documentation explicitly states that either notation is acceptable: http://api.jquery.com/css/ The actual problem is that you are missing a closing curly brace on this line: Change it to this: Here’s a working demo: http://jsfiddle.net/YPYz8/