This is the logic: I enter something into the form, and the form is a direct search in AJAX. after I found the value, I click the add button and creates a new row in the existing / tbody table.
<table class="standard"> <thead> <tr> <td colspan="2"> Start Input barcode / Product Name </td> <td colspan="4"> <input type="text" size="90" value="" placeholder="Barcode / Product Name"> </td> <td> <button class="tambah"><i class="icon-plus"></i> Add</button> </td> </tr> <tr> <td> No. </td> <td> Kode Barang </td> <td> Nama Barang </td> <td> Qty </td> <td> Harga </td> <td> Disc % </td> <td> Total </td> </tr> </thead> <tbody> </tbody> </table>
Can I do it? if so, how?
Example script: http://jsfiddle.net/anggagewor/cauPH/
javascript jquery ajax php
Anggagewor
source share