yet another clearInterval in javascript not working
<p>Belive me i ve seen many solutions i still dont know why this doesnt work.</p>

<pre><code>timerId = 0;
    $("#dumpStartId").click(function(){
        var proId = $("#curProfileId").val();
        timerId = setInterval(function(){
        showact();
        showactdat();
        },1000);
    });
    $("#dumpStopId").click(function(){
        clearInterval(timerId); 
        document.getElementById('curSeqId').value = "";
        if(timerId)
        {
            clearInterval(timerId);
        }           
    }); 
</code></pre>

<p>dumpstartid and dumpstopid are the ids of the two buttons. Even after clicking stop the intervals are executing continuosly. Im not sure whats wrong with this code. No errors in the console too.  </p>

<p>Update: I can observer that sometimes after insanely pressing the button for around 5 or 6 times it comes to a complete halt. Cant this thing stop instantaneously (or is too much to ask??)</p>
