Data-Role Content, Scrolling To The Top Of A Div Inside It.

Data-Role Content, Scrolling To The Top Of A Div Inside It.

I am completely flummoxed on how to scroll to the top of an internal <div>.  I have created a fiddle here that I hope tries to explain what I aiming to do.

The red bordered box holds the content as I wish to maintain state between some pages rather than have it revert to the top before transition.

On the large part this is fine but there are a couple of pages that I wish to have the content in its original state starting with the first paragraph.

In a browser I can use

$('#trial_one.internalDiv').scrollTop(0);

But it doesn't work on a device.

This I am stuck on.

Thanks in advance.
    • Topic Participants

    • paul