Why jQuery doing unwanted multiple actions of single command?
<p>When i resize browser the it gives multiple alerts. I used "return false" not working.  </p>

<p>If I used unbind()/unbind('resize') then it works but it creates an other problem- the resize() function stops working from second time browser/window resize.</p>

<p>My code-</p>

<pre><code>&lt;script src="jquery.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
$(document).ready(function(e) {

    alert($(".myclass").parent().width());

    $(window).bind('resize',function() {
        alert($(".myclass").parent().width());
    });

});
&lt;/script&gt;
&lt;section class="myclass"&gt;&lt;/section&gt;
</code></pre>
