title: How can I scroll to a page element in jQuery Mobile?
body: <p>I have a long jQuery mobile page and would like to scroll to an element halfway down this page after the page loads.</p>
  
  <p>So far I've tried a few things, the most successful being:</p>
  
  <pre><code>jQuery(document).bind("mobileinit", function() {
    var target;
    // if there's an element with id 'current_user'
    if ($("#current_user").length &gt; 0) {
      // find this element's offset position
      target = $("#current_user").get(0).offsetTop;
      // scroll the page to that position
      return $.mobile.silentScroll(target);
    }
  });
  </code></pre>
  
  <p>This works but then the page position is reset when the DOM is fully loaded. Can anyone suggest a better approach?</p>
  
  <p>Thanks</p>