Jquery script not working on my computer
<p>I am having a problem with a script on this website I try to build. This is the script itself:</p>

<pre><code>var id=0;
var cases=$('.cases').length;
$('#show').html($('#'+id).html());
setInterval(function() 
{
    $('#show').empty();
    if (id==cases-1)
        id=0;
    else
        id++;
    $('#show').html($('#'+id).html());
},5000);
</code></pre>

<p>this is the html code:</p>

<pre><code>&lt;div class="page"&gt;
    &lt;br /&gt;&lt;br /&gt;&lt;headline&gt;cases&lt;/headline&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id='case'&gt;&lt;/div&gt;&lt;div class='content'&gt;&lt;div id='show'&gt;&lt;/div&gt;&lt;div id='column1'&gt;&lt;div class='cases' id='0'&gt;&lt;div class='short'&gt;&lt;div id='cases-image'&gt;&lt;img src='images/Sunset.jpg'/&gt;&lt;/div&gt;&lt;div id='cases-info'&gt;&lt;div id='cases-headline'&gt;zxfbzsxdbfsdfh&lt;/div&gt;&lt;cases-text&gt;dfghsdfgsdfgsdfg&lt;/cases-text&gt;&lt;div class='more' id=zxfbzsxdbfsdfh &gt;להמשך קריאה...&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div id='column2'&gt;&lt;div class='cases' id='1'&gt;&lt;div class='short'&gt;&lt;div id='cases-image'&gt;&lt;img src='images/גלריה1.bmp'/&gt;&lt;/div&gt;&lt;div id='cases-info'&gt;&lt;div id='cases-headline'&gt;xbzsdfbsdf&lt;/div&gt;&lt;cases-text&gt;dafasdvasdvasdv&lt;/cases-text&gt;&lt;div class='more' id=xbzsdfbsdf &gt;להמשך קריאה...&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;            &lt;/div&gt;
        &lt;div id="footer"&gt;
&lt;/div&gt;
</code></pre>

<p>It works in jsFiddle, but it doesn't work on my computer, it only shows the first case, the id in the script changes, but it doesn't get the html from the other cases... Can you help me?</p>
