Select child in jquery object

I am new to jquery and I have a basic question.

I have a jquery object derived from a jquery selector. eg

var obj = $('#certainTR'); 

Now I want to get the element in this object, and I cannot use '# limit date> in the selector because' #certain 'is not passed in my routine. Is there a way to make an object selection base? Thank you very much in advance!

+7
javascript jquery
source share
1 answer

use .children()

 var obj = $('#certainTR'); // #certainTR obj.children('.date'); // #certainTR > .date 

I suggest you visit a tree traverse

+12
source share

All Articles