I have developed the android phonegap using jquery and javascript.I have a div with scrollbar(with many textboxes).In the onfocus of textbox i need to scroll the div to top position so that the focused textbox move to top position of div.
Here is my code:
$('input:text').live('focus', function()
{
var container = $(this);
container.scrollTop(0);
});
Please kindly guide me.Thanks in advance.
Give the below line in manifest in Application Tag