I need autofill script but i dont know where to begin
I have mysql databese table like this (records aprox. 400):
id | product name | barcode | quantity | price
-------------------------------------------------------------
1 | procuct 1 | 0000001 | 21 | 12
2 | procuct 2 | 0000002 | 23 | 5
3 | procuct 3 | 0000003 | 87 | 54
4 | procuct 4 | 0000004 | 98 | 23
and i have form:
<html>
<head>
<title>Untitled Document</title>
</head>
<body>
<form id="sell">
Product name: <input name="txt_product_name" type="text" value="" />
Product barcode: <input name="txt_product_barcode" type="text" value="" />
Product quantity: <input name="txt_product_quantity" type="text" value="" />
Product price: <input name="txt_product_price" type="text" value="" />
<br>
<input name="Send" type="button" value="Send">
</form>
</body>
</html>
What i want is when user type barcode it must fill out other (product name, quantity, price) fills and must send the form.
I am new in JSON, AJAX, JQUERY. so i can not choose which one to use. which one works faster with many records. I wrote some scripts but all is not working :(