jquery - How do I manipulate first table cell in table row based on values in second and third table cell -


i manipulate first table cell in table row based on values in second , third table cell. has done each table row.

is possible jquery?

something work:

$(document).ready(function() {     $('#tbl tr td:nth-child(1)').each(function() {        var siblings = $(this).nextall('td');      $(this).html(siblings.eq(0).html() + siblings.eq(1).html());     }); }); 

try on this:

<table id="tbl">  <tr>    <td>one</td>    <td>two</td>    <td>three</td>  </tr>  <tr>    <td>1</td>    <td>2</td>    <td>3</td>  </tr> </table> 

Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -