28111 sujets

CSS et mise en forme, CSS3

Bonjour,

me permet de venir vers vous pour une aide sur l'utilisation de bootstrap pour un table.

J'ai une page web avec une liste déroulante avec un bouton recherche (avec javascript+ ajax pour afficher le résultat), cela fonctionne Smiley smile mais je bloque sur un élément.

 $.ajax({
   type: "POST",
   url: "./ajax/resultat_rechercher.php",
   data: "marca="+$("#marca").val()+"&modelo="+$("#modelo").val()+"&substatus="+$("#substatus").val(),
   cache: false,
	dataType:"json",
   success: function(data){ $('#resultat_rechercher').bootstrapTable({
              data: data
           });
		     $(function () {    $('a').popover()  })
       },
       error: function(e) {
           console.log(e.responseText);
       }
    });


			<table id="resultat_rechercher"
  
class="table" data-search="true" data-show-columns="true" data-show-export="true" data-show-fullscreen="true">

<thead class="thead-dark">
                        <tr>
                            <th data-sortable="true" data-field="Point de Vente">Point de</br> Vente</th>
                            <th data-sortable="true" data-field="Localisation"> Localisation</th>
                            <th data-sortable="true" data-field="No Cde Usine">No Cde</br> Usine</th>
							<th data-sortable="true" data-field="Vin">Vin</th>
                            <th data-sortable="true" data-field="Sous-status">Sous</br>status</th>
							<th data-field="Dept Livraison">Dept</br>Livraison</th>
                            <th data-sortable="true" data-field="Marque Véhicule">Marque</th>
                            <th data-sortable="true" data-field="Modèle">Modèle</th>
							<th data-sortable="true" data-field="Version">Version</th>
                            <th data-sortable="true" data-field="Couleur">Couleur</th>
							<th data-sortable="true" data-field="Intérieur">Intérieur</th>
							<th data-sortable="true" data-field="option">Options</th>
                        </tr>
                   </thead>
                    <tbody>
					
					</tbody></table>


voici la partie javascript et html.

J'aurai voulu ajouter un bouton onclick pour toute les lignes d'une colonne sur les éléments généré mais je ne trouve pas comment faire.

Je voudrais savoir si c'est possible et si quelqu'un pourrais m'aiguiller