Bonjour,

J'ai un souci. Voila, je m'explique, j'ai un tableau et je n'arrive pas a récupérer les valeurs de mon tableau avec un event dblclick.

Code html : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
 
<table class="table table-striped table-condensed table-hover" id="querytab">
      <thead>
        <tr>
          <th style="display:none"></th>
          <th style="width:50px;"></th>
          <th>CHAMPS 1</th>
          <th>CHAMPS 2</th>
          <th>CHAMPS 3</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td style="display:none">id</td>
          <td><span class="glyphicon glyphicon-pencil"></span></td>
          <td>toto</td>
          <td>tata</td>
          <td>tutu</td>
        <tr>
      </tbody>
    </table>

Et mon js qui ne fonctionne pas :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
 
$('#querytab tr').dblclick(function()
  {
    alert($(this).find(td).eq(0).html());
  });
Merci de m'aider.