When the user enters the page, an HTML table containing two rows will be generated. The first row is the table title, the second row has an input box in the first cell, and the other cells are empty.
Barcode | product | Amount | price |
---|---|---|---|
Input box |
After the user enters the barcode in the input box, I need:
So after the first entry, the form should look like this:
Barcode | product | Amount | price |
---|---|---|---|
54573498759384 | Pants | 10 | 99 USD |
Input box |
etc...
I've read everywhere and came to the conclusion that I probably need AJAX, but I've never used it before, so any help is greatly appreciated, just to get started, in the simplest language possible.
I only use PHP and Javascript. I've never used JQuery.
Thanks in advance.
I haven't found a way yet.
Just add ajax call in onBarcodeChange function to get data from backend