jquery - How to get certain cell of datatables when every row comes from foreach? -


i want update cell dynamiclly ajax,here table.

<table id="datatable"> <thead> <tr >     <th hidden> id</th>     <th>custname</th>     <th>custaddress</th>     <th>custcity</th>     <th>custcontact</th> </tr> </thead> <tbody>  @foreach($customers $customer)     <tr>         <td class="cust_id" hidden>             <div contenteditable="true" class="text" >{!! $customer['cust_id'] !!}</div>         </td>         <td class="cust_name">             <div contenteditable="true" class="text" onblur="alert_value()">{!! $customer['cust_name'] !!}</div>         </td>         <td  class="cust_address" >             <span  contenteditable="true" class="text">{!! $customer['cust_address'] !!}</span>         </td>         <td class="cust_city" >             <span contenteditable="true" class="text">{!! $customer['cust_city'] !!}</span>         </td>         <td class="cust_contact" id="text">             <span contenteditable="true" class="text">{!! $customer['cust_contact']!!}</span>         </td>     </tr> @endforeach </tbody> 

how can cell in table,how should set class or id ?it's annoying me..thanks in advance!


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -