call functions from JQuery - better way
<p>I want to call a JQuery function on window resize and also during the initial load. I just tried this, I am sure there is a better way, Please explain this learner,</p>

<pre><code>$(document).ready(function () {
   $(function () {
     var doosomething = function () {
         $('#bottomDiv').css('top', $(window).height() - 105);
       }
       $(window).resize(doosomething);
     });
 });
</code></pre>
