mardi 23 octobre 2018

How to remove a selected option from another select tag when i have five select with same options and values?

I have this code

<?php for($i=1;$i<=5;$i++){ ?>
 <select name="bonus<?php echo $i;?>" style="margin-top:30px;">
<?php 
   foreach($bonusable as $bns) {?>
<option value="<?php echo $bns['type'];?>"><?php echo $bns['name'];?></option>
<?php } ?>

</select>
<?php }?>

This code display the five select and these have same options with the same value , and i need to delete the option if is selected in another select tag.. I have an image that shows what this code displays

Here is the picture how to display

please help me, and sorry for my English!




Aucun commentaire:

Enregistrer un commentaire