setinterval to reload php page unless "edit" button is clicked
<p>right now I have an interval function in jquery that reloads a page every few seconds :</p>

<pre><code>setInterval(function () {
$('div#tab2').load('morefour.php?doc=' + encodeURIComponent(ktitle));
}, 3000);
}); 
</code></pre>

<p>What I actually want to do now is if this input is clicked :</p>

<pre><code>&lt;input type='image' class='edit' src='edit.png'&gt;
</code></pre>

<p>stop the setinterval function.</p>
