Question: I want to build **jQueryMobile** app using **IndexedDB** technology for databases. While developing in web browser the app is working. How can I convert this app into native android app (using phonegap) and to keep the data from IndexedDB database? 
I know that location of my IndexedDB database is at:

```
C:\Users\<User Name>\AppData\Local\Google\Chrome\User Data\Default\IndexedDB\

```

So is there a way for my app to use IndexedDB at the mobile devices ?
For conversion I'am using [phonegap cloud](https://build.phonegap.com/apps) but the converted app does not have access to the database. I'am testing with Nexus 7 tablet. The app on my PC works great.

> 
> **EDIT 1**:
>  I'am testing with Google Nexus 7 tablet. Android version is 4.4.2 so i suppose that IndexedDB is supported on my device. The problem is that I don't have idea how to implement the file from the location above (what to do with it) while conversion, so that the database would be found on my device. (I'am using [phonegap cloud](https://build.phonegap.com/apps) for conversion). 
> 
> 
>

Answer: 
You can use .focus() to focus the input 

```
$(function () {
    $('#ss').focus();
});

```

[**DEMO**](http://jsfiddle.net/Kg6J3/)
Pure Javascript solution, works IE6+ and any other browser.

Put this before body end tag

```
  <script type="text/javascript">
    var obj = document.getElementById("ss");
    obj.focus(); 
  </script>

```

On browsers, that support html5, you can use autofocus attribute inside input.

```
<input autofocus type="text" class="input-medium search-query yui-ac-input" name="ss" id="ss" placeholder="Search and find it fast" title="Search and find it fast" autocomplete="off" />

```