adding a div only if number of charecter exceeds the set limit
<p>I am trying to append a div to pdpTab5 if the tab contains more than 540 charecters. Where i will be creating a "read more..." sort of situation through a modal. </p>

<p>I am truncating the text by using this. But the part of adding a div is making me confused. I dont want to show the div if the tab contains less than 540 charecters. </p>

<pre><code>&lt;script&gt;
    $(function(){
        var myDiv = $('#pdpTab5');
        myDiv.html(myDiv.html().substring(0,540));
    });
&lt;/script&gt;
</code></pre>
