title: JQuery accordion, run function after accordion fully loaded
body: <p>I am trying to retrieve/manipulate an elements offset when the page loads. I can do this, but what I have currently runs before the JQuery accordion is fully loaded, so after I change the offset, the accordion than initializes, and then changes the elements positions inside of it.</p>
  
  <p>So how can I go about running my function after the accordion has been fully loaded?</p>
  
  <pre><code>$("#accordion").accordion({
      active: false,
      collapsible: true,
      heightStyle: 'content'
  });
  
  
  
  $(".form-element").each(function(){
          var ot = $(this).offset().top;
          var ol = $(this).offset().left;
  
          var got = Math.round(ot / 10) * 10;
          var gol = Math.round(ol / 10) * 10;
  
          $(this).offset({ top: got, left: gol })
      });
  </code></pre>