First thing first, the language attribute is deprecated, the correct way would be <script type="text/javascript">.
Otherwise your code should be fine. Now I must ask, did you included the jQuery library?
And last thing, exactly what error is FireBug throwing out?