execute setInterval on condition jQuery
<p>In my Master Page load <code>checkNotification();</code> function gets called after each 1 minute.on master page there is one drop down <code>cmbTicketStatus</code>.if the drop down value is 4 then DO NOT RUN setInterval function.</p>

<p>tried some code:-</p>

<pre><code>function masterPageLoad() {
    setInterval(function() { 
         if($('#cmbTicketStatus').val != '4')
         {
         checkNotification();
         } }, 60000);
         }
</code></pre>

<p>My Project is like for e.g. when i select "ONE" in drop down click on SHOW i see 50 rows in my page and its efficient to call setInterval function on those 50 rows becoz the function takes somw row data in it.
BUT
if i select "FOUR" in drop down click on SHOW i gets 15000 rows in my page. HERE I DONT WANT setInterval function to run</p>
