Fill in form with customer ID

Asked

Viewed 59 times

0

I have a form with customer ID, customer name, address and email. As the ID is only wanted that when the input of the ID is filled in, do a search in the database and complete the rest of the form with the missing input’s. The problem is that I do not want with any button, I wanted even after filling "he" is searched immediately without updating the page or anything like that.

1 answer

0

inp.addEventListener("id", function () { 
   //chamada da função que vai preencher os campos
}, false);
  • Can do only for an input after I do the others, it is that I do not know much of java.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.