jquery - {{#each}} in Handlebars and accessing each element created -
i using handlebars create template table, , can't seem able access each individual td created.
<tbody> {{#each this}} <tr class='row'> <td class='table-course'>{{name}}</td> <td>{{teacher}}</td> <td>{{department}}</td> </tr> {{/each}} </tbody>
i have given first td class of 'table-course' can't seem access these td's in jquery. when try trigger jquery event $('td.table-course) nothing happens.
does know best way access these {{#each}} generated td?
Comments
Post a Comment