[eluser]C_Line[/eluser]
i have a code like this
Code:
<?php
foreach($query_add as $item) <-- retrive item from database
{
if($item->nama_barang == "Lainnya")
{
echo "<Tr><td><input type='text' nama='kod_b'></td>";
}else{
echo "<Tr><td><input type='text' nama='kod_b' value='$item->id_barang'></td>";
}
}
?>
when i click select box , is the value == Lainnya
i wan to add new textbox
but when i click, it only display 1 textbox,
i wan every time i click it appear new textbox
ex. i click 3 times than appear 3 textbox
thx for help