event problems

event problems

I want to put a click event on a button
i have given the button an id of "button" in the html but i cant seam to make the jquery work

i have tried both of the following

$("#button").click(function(){
alert("test");
})

and

$("#button").click(kitten());

function kitten()
{
alert("test");
{

and neither version works.

note that if i change $("#button").click to $(document).ready then it it does work (for both versions of the code)

so why cant i make click events work