title: How to show alert message on jquery variable?
body: <p>I am learning jQuery now a days, I have one jquery variable: var test = true; If I click this variable, I can show this message in my four s, But I need to display one alert message for fifth time and or above time to not to display this value. How can I achieve this ?</p>
  
  <pre><code>if(test){
  &lt;div id="1"&gt;test&lt;/div&gt;
  &lt;div id="2"&gt;test&lt;/div&gt;
  &lt;div id="3"&gt;test&lt;/div&gt;
  &lt;div id="4"&gt;test&lt;/div&gt; 
  &lt;div id="5"&gt;test&lt;/div&gt;
  &lt;div id="6"&gt;test&lt;/div&gt;
  }
  </code></pre>