Ho il seguente codice che non funziona e non capisco perchè...

Se clicco il checkbox checkAll dovrebbe selezionarmi gli altri due checkbox. ma non è così...

codice:
<script>
	$("#checkAll").click(function(){
		$("INPUT[type='checkbox']").attr('checked', $('#checkAll').is(':checked'));    
	})
</script>
<form action="" method="post" name="changeeuro">
<table width="30" border="1" cellspacing="0" cellpadding="0">
	<tr>
		<td style="height:22px"><input type="checkbox" name="checkAll" id="checkAll" value="all"></td>
	</tr>
	<tr>
		<td style="height:22px"><input type="checkbox" name="check1" id="check1" value="1"></td>
	</tr>
	<tr>
		<td style="height:22px"><input type="checkbox" name="check2" id="check2" value="2"></td>
	</tr>
	<tr>
		<td style="height:22px"><input type="checkbox" name="checkn" id="checkn" value="n"></td>
	</tr>
<table>
</form>
qualcuno mi risolve il problema?