Welcome Guest, Not a member yet? Register   Sign In
how to add textbox every time click item in select box
#1

[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>&lt;input type='text' nama='kod_b'&gt;&lt;/td>";
}else{
echo "<Tr><td>&lt;input type='text' nama='kod_b' value='$item-&gt;id_barang'&gt;&lt;/td>";
}
}
?&gt;

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


Messages In This Thread
how to add textbox every time click item in select box - by El Forum - 07-09-2012, 12:02 AM
how to add textbox every time click item in select box - by El Forum - 07-09-2012, 12:08 AM
how to add textbox every time click item in select box - by El Forum - 07-09-2012, 01:30 AM



Theme © iAndrew 2016 - Forum software by © MyBB