Iam totaly new here and i hope someone could help me with my challenge to get the following works proper.
Iam busy to develop a interactive table. The goal is, when a user selected the value"Nee" from the dropdown (option) menu in a certain cell another element has to be inserted in the table.
What I've created so far works fine but when the second row is fetched from the mysql database it doesn't put in the element after selecting my value to "Nee" as is does in the first row.
I worked with a php while loop that will fetch all data thats available in my database for the selected date. Please could someone help me out I would be very gratefull!!!
down below a visual from my table that almost works fine.
Here is my code i used for my project to activate my onchange
<script>
function groep(sel){
if(sel.value=="Nee"){document.getElementById('th_aantal_pallets_n_oke').style.display='table-cell';}
if(sel.value=="Ja"){document.getElementById('th_aantal_pallets_n_oke').style.display='none';}
if(sel.value==""){document.getElementById('th_aantal_pallets_n_oke').style.display='none';}
if(sel.value=="Nee"){document.getElementById('hallo1').style.display='table-cell';}
if(sel.value=="Ja"){document.getElementById('hallo1').style.display='none';}
if(sel.value==""){document.getElementById('hallo1').style.display='none';}}
</script>
<td width="75">
<label></label><select name="Aantal_pallets_oke" onchange="groep(this)" require=" ">
<option value=""></option>
<option value="Ja" selected>Ja</option>
<option value="Nee">Nee</option>
</select>
</td>
<td width="100" id="hallo1" style="display:none">
<label></label><input type="text" name="Aantal_pallets_noke" size="10" require=""/>
</td>
Thanks for helping me!!
