I need to get a tr
element which contains a td
element which contains specific text. The td
will contain that text and only that text (so I need text = 'foo'
not text contains 'foo'
logic).
So I need the equivalent of the following 'pseudo jQuery':
var tableRow = $(table td[text = 'foo']).parent('tr');
Can anyone provide the correct syntax?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…