Your Location is: Home > Jquery

jquery ui auto complete from web sql

From: Sri View: 4985 ANJAN 


I am working in a project HTML with web sql. I am trying to autocomplete a text box from web sql data. But the autocomplete is not working, also no error is showing. Here is my code

        <link rel="stylesheet" href="">
        <link rel="stylesheet" href="//">
<input type="text"  name="ACC" id="ACC" class="form-control input-sm"/>
<script src=""></script>
        <script src=""></script>
        <script src=""></script>
var ACCAUTO = "";
var db = openDatabase('test', '1.0', 'test', 5 * 1024 * 1024);
$(document).ready(function () {
db.transaction(function (tx) {
                    tx.executeSql('create table if not exists test1(ID integer primary key autoincrement, REF text, DATE date not null, ACC text, ACCTP text, PARTY text, PARTYTP text, AMT DECIMAL(10, 5), REM text, PROJ text)');
db.transaction(function (tx) {
                    tx.executeSql('select * from test1 group by ACC', [], function (tx, results) {
                        var n = results.rows.length;
                        for (var i = 0; i < n; i++) {
                            var x = results.rows.item(i);
                            ACCAUTO += x.ACC + ',';
                    source: ACCAUTO

Please help me in this regard

Best answer