vendredi 13 avril 2018

how to turn on/off dynamically round slider button in the base of value 1 and 0 actually i am fetching that value from db

   <div id="checkbox-container">

   <td><label class="switch"><input type="checkbox" name="check" id="option1" <?php if ($row['activate'] == 1) { 'checked="checked"'; }  ?>onclick="myFunction()"><span class="slider round">&nbsp; <p id="text" style="display:none"></p></span></label></td>
    </div> 

enter image description here




Aucun commentaire:

Enregistrer un commentaire