Javascript while循环中有多个id以显示引导popover

Javascript while循环中有多个id以显示引导popover,javascript,popover,Javascript,Popover,我在while循环中有多个引导弹出窗口,但它们具有相同的id,因此我在显示方面有一些问题。你能告诉我我可以增加身份证吗 <?php while ($ligne = $displayClient->fetch()){ ?> <tr> <th><?php echo $ligne['client_id']; ?></th> <th><?php echo $ligne['clien

我在while循环中有多个引导弹出窗口,但它们具有相同的id,因此我在显示方面有一些问题。你能告诉我我可以增加身份证吗

<?php while ($ligne = $displayClient->fetch()){ ?>
    <tr>
        <th><?php echo $ligne['client_id']; ?></th>
        <th><?php echo $ligne['client_type']; ?></th>
        <th><?php echo func_date_us_vers_francais($ligne['client_dateAdded']); ?></th>
        <th><?php echo $ligne['client_name']; ?></th>
        <th><?php echo $ligne['client_city']; ?></th>
        <th><?php echo $ligne['client_cp']; ?></th>
        <th><?php echo $ligne['client_adresse']; ?></th>
        <th><?php echo $ligne['client_phone']; ?></th>
        <th><?php if($ligne['client_mail'] == ''){echo '';}else{ ?> <a href="mailto:<?php echo $ligne["client_mail"]; ?>"><i class="fa fa-envelope fa-2x"></i></a> <?php } ?></th>
        <th>
            <script type="text/javascript">
            $('#cc').popover({

            });</script>
            <button type="button" id="cc" class="btn btn-default" data-html="true" data-delay="100" data-placement="left" data-toggle="popover" title="Actions" data-content='<a href="?page=clientUpdate.php&id=echo $ligne["client_id"]"><button type="submit" name="btn_update_client" id="btn_update_client" class="btn btn-default btn-primary"><i class="fa fa-pencil fa-2x"></i></button></a><button type="button" name="btn_delete_client" id="btn_delete_client" value="$ligne["client_id"]" onclick="form_confirm();" class="btn btn-default btn-danger"><i class="fa fa-times fa-2x"></i></button>'><i class="fa fa-cog fa-2x"></i></button>
        </th>
    </tr>
    <?php } ?>

$('#cc').popover({
});

可能会将选择器更改为:
$(“[数据切换]”).popover()打印所有按钮后(while循环后输出脚本)?确实需要ID吗?用一个类来代替。这和classi是一样的。我需要增加id。我想没人有主意吧?