how to stop script from running
<p>I have been trying to figure this out and probably asked the same question for the fifth time. 
Some day I will loose my mind. Any way</p>

<p>Here is what I am doing </p>

<p>I have four tabs. The contents in the tabs are dynamically generated. Sometimes they are very long and messes with page layout. So I am doing this to restrict them upto 540 charecters</p>

<pre><code>&lt;script&gt;
$(function(){
    var myDivThree = $('#pdpTab6');
    myDivThree.html(myDivThree.html().substring(0,540));
    $(myDivThree).append('&lt;div id="readThree"&gt;Read More&lt;/div&gt;');
    //this is what I am doing to show the extra content
    $('#readThree').click(function(){
        $('#popThree').show();
    });
    $('.closePop').click(function(){
        $('#popThree').fadeOut();
    })
});
&lt;/script&gt;
</code></pre>

<p>The weird thing is If a tab contains less than 540 charecters I see read more twice. I would prefer if a tab contains less than 540 charecters not to run the script at all. Am i day dreaming or is it doable?</p>
