jquery provides the following methods: addClass('hidden') and removeClass('hidden') which make sure you don't overwrite other class names which are potentially set there. You might want to use this approach in the future :-)