javascript - How to select only one checkbox when data comes from database -
i want give permission user select 1 check box. $jsqla = mysql_query("select * products id='$product_id'") or die(mysql_error()); $jfeta = mysql_fetch_assoc($jsqla); $formats = explode(";", $jfeta['formats']); <div class=""> <?php foreach($formats $v){ ?> <label style="line-height: 1.25em;display: block;width: 100px;margin-right: 10px;float: left;"> <div class="fomat_buttons" style="border: 1px solid;border-radius: 9px;text-align: center;padding-top: 10px;padding-bottom:10px;padding-left: 3px;padding-right: 3px;border-color: #cccccc;font-family: 'ssemibold'; font-size: 13px; color: #44b7da;"> <input class="format_cheks" type="checkbox" value="<?php echo $v; ?>" style="visibility:hidden;"/> <span styl...