0

I have a textbox with button. how can i retrieve value from Web SQL database in JS file by using onclick function and display in textbox?

garo
  • 1
  • 1

1 Answers1

0

You can use Ajax for this:

XmlHttp.onreadystatechange = HandleUserNameResult;
XmlHttp.open("GET", requestUrl, true);
XmlHttp.send(null);


function HandleUserNameResult() {
     var responseText = XmlHttp.responseText;    //Here you will get the result;
}
user1530755
  • 81
  • 1
  • 1
  • 7