How to get the tbody element of a table using JQuery?

Viewed 79807

I have a table structure (Table1) with thead and tbody.

My main thead also has a table inside with its own thead and tbody.

When I use $('#Table1 tbody') it returns all tbody elements whereas I'd only need the tbody of the Table1.

How could this be achieved?

Thanks,

3 Answers

simple add table id and get the value example

 $('#dc-table tbody').on('keyup','.qty_approved', function(){
   alert('tested...');   
 });
Related