title: stop the jquery function after one execution
body: <p>I have the function <code>Nextthing</code> that hides first iframe and shows the next one, but as you will see in the code of the function I did just for only one next iframe, so if he makes the action for the second iframe to hides it and shows the next iframes it will display but in the wrong place.</p>
  
  <p>How can I make the function to stop after one running?</p>
  
  <pre><code>function Nextthing (){
  
      $("#i").hide();
      $('.table').eq(1).find('tbody tr').eq(2).after(
          '&lt;tr&gt;&lt;td colspan=10&gt;&lt;iframe class="iframe"  src="/msg.html?msgId=' +
          $('.table').eq(1).find('tbody tr').eq(2)
          .find('td a').eq(0).text()+'&amp;constant=1"&gt;&lt;/iframe&gt;&lt;/td&gt;&lt;/tr&gt;);
  }
  </code></pre>
  
  <p>UPDATE: as you can see that iframe is called from that page msg.html, well that page has an input and a submit button, and the function <code>Nextthing</code> is called in that button like this:</p>
  
  <pre><code>&lt;input type="submit" onclick="parent.Nextthing();" /&gt;
  </code></pre>
  
  <p>When somebody presses the submit button in the iframe it will load the iframe of the next page of msg.html based on msgId, and I want this load to be only once...</p>