Here is a working version: http://jsfiddle.net/6Ccj7/
Your html is broken. Change this:
//BODY CONTENT 2// |
To this:
//BODY CONTENT 2// |
Also, you used id for film
when in fact you have 2 instances. You class instead:
//HEAD CONTENT 1// |
//BODY CONTENT 1// |
//HEAD CONTENT 2// |
//BODY CONTENT 2// |
Here is the updated JS:
$(document).ready(function(){
$('.film td').hide();});
$(document).ready(function(){
var n1 = 0;
$('.film th.1').click(function(){
if(n1 == 0){
$('.film td.1').show();
n1 = 1;
}else{
$('.film td.1').hide();
n1 = 0;}
});
var n2 = 0;
$('.film th.2').click(function(){
if(n2 == 0){
$('.film td.2').show();
n2 = 1;
}else{
$('.film td.2').hide();
n2 = 0;}
});
});