how to stop javascript function after running once?
<p>can someone please show me how i can stop this javascript function after it has ran once?
At the moment it just repeats again and again and i only want it to run the once.</p>

<p>I'm still learning javascript, so sorry if its not great.</p>

<p>thanks</p>

<pre><code>&lt;script&gt;
$(function() {
    $(".search_prompt").hide();

    $("#text").focusin(function() {
        $(".search_prompt").show();
    }).focusout(function () {
        $(".search_prompt").hide();
    });
});
&lt;/script&gt;
</code></pre>
