You probably have some syntax error or somthing like that somewhere else, because what you have just works. Are you sure there aren't any JS ...
stackoverflow.com