Jquery counting on multiple pages
<p>Im trying to make multiple quizes that will keep track of each quiz on each page.</p>

<p>So, far i only have 1 counter which cant keep track of which page the quiz are answered.</p>

<p>All of my quizes are in the ID tag ="jquiz" so i only have to use one stylesheet. How would i implement mulitple counters to my code</p>

<p>edit: updated code </p>

<pre><code> $(".jquiz li ul li").click(function(){

    if (!($(this).parent("ul").hasClass("answered"))) {

        // removes unanswered class and adds answered class so they cannot change answer
        $(this).parent("ul").addClass("answered");

        // runs if they clicked the correct answer
        if ($(this).hasClass("correct")) {
            //adds one to quiz total correct tally
            count++;
             }


             //score check
            if ($('ul.answered').length == 3) {
            $('#page1mark').fadeIn('slow');
            $('#page1total').html('You got a '+count+' out of '+3+' on the page 1quiz.');
        }

        if ($('ul.answered').length == 6) {
            $('#page2mark').fadeIn('slow');
            $('#page2total').html('You got a '+count+' out of '+3+' on the page 2 quiz.');
        }

        if ($('ul.answered').length == howmanyquestions) {
            $('#jquizremarks').fadeIn('slow');
            $('#jquiztotal').html('You got a '+count+' out of '+howmanyquestions+' on the total quiz.');
        }
    }
}};


   //---------The html
        &lt;!-- page1---&gt;
    &lt;ol class="jquiz"&gt; //how do i add IDs to each class in a page?
         &lt;li&gt;
            &lt;p&gt;Cake is yum&lt;/p&gt;
                 &lt;ul&gt;
                 &lt;li class="correct"&gt;True&lt;/li&gt;
                &lt;li&gt;False&lt;/li&gt;
    &lt;/ul&gt;
    &lt;/li&gt;
  &lt;/ol&gt;
</code></pre>
