mercredi 8 novembre 2017

hide/show columns $row depending checkbox or radio

I need to create a checkbox that hide the rows that contain MULTIPLE in CARS value from a CRUD. This is the part where I need to implement the checkbox:

     <body>
        <?php while($row = $resultado->fetch_array(MYSQLI_ASSOC)) { ;  ?>
      
      <form name="form">                        
        Hiden Multiple: <input type="checkbox" id="ck"
 ***onclick="hide if $row['Cars']= Multiple, if not show :D "***/>
      </form>


        <table id="tabla" border="1">
            <tr>
                <td><?php echo $row['ID']; ?></td>
                
            </tr>
            <tr>
                <td><?php echo $row['Name']; ?></td>
               
            </tr>
            <tr>
                <td><?php echo $row['Years']; ?></td>
                
            </tr>
                        <tr>
                <td><?php echo $row['Cars']; ?></td>
               
            </tr>
        </table>   
    </body>

Sorry for my poor english :(




Aucun commentaire:

Enregistrer un commentaire