1.

Solve : css help.,?

Answer»

can someone help me., how to fullrowselect in css and javascript??What do you want to do with the row?when I click the row., it will HIGHLIGHT., and there's a VARIABLE that will hold it.,Here's an approach I would adopt for this kind of thing:

Code: [Select]<tr onclick="ref_id = 1;">
  <td>cell 1</td>
  <td>cell 2</td>
  <td>cell 3</td>
</tr>
<tr onclick="ref_id = 2;">
  <td>cell 4</td>
  <td>cell 5</td>
  <td>cell 6</td>
</tr>

When the row is clicked, a reference variable is set.  This COULD correspond to the position of DATA in an array - or you could pass the variable to an Ajax call or whatever.  That would be easier I think than trying to extract the data from the TD cells.



Discussion

No Comment Found