title: jquery hide, show not working in chrome
body: <p>jQuery show and hide in developer tool and in <code>$(document).ready()</code> function it is working fine but in regular flow of program its not working in <code>expandTreeNode()</code> function.</p>
  
  <p>Problem is only in chrome.</p>
  
  <pre><code>$(document).ready(function(){
      $('#loading_msg').hide();
  });
  
  
  //not working
  function expandTreeNode(item) {
  
      if (item.p.postData.nodeid == undefined)
          return true;
  
      $('#loading_msg').show();
  
      //some code here
  
      $('#loading_msg').hide();
      return false;
  }
  </code></pre>
  
  <p>Thanks in advance.</p>