Hello.
I have a problem to find element with jQuery.
HTML:
I need to get CheckBox in a row in which in second cell text equal to some text.
My real jQuery wihich work in FireBug is :
But when i try to convert it to WebAii jQuery it return ObjRefException.
i can find cell with this text but i cant get checkbox, because of i cant get parent element of cell.
I know i can get it with LINQ and Find Expressionsm but i want to know how i can get it with WebAii jQuery.
Thanks.
I have a problem to find element with jQuery.
HTML:
<table id="descriptorTable" class="rf-dt table table-striped"><colgroup span="5"></colgroup><thead id="descriptorTable:th" class="rf-dt-thd"><tbody id="descriptorTable:tb" class="rf-dt-b"><tr class="rf-dt-r rf-dt-fst-r"><td id="descriptorTable:0:j_idt664" class="rf-dt-c" style="text-align: center;"><input type="checkbox" onclick="updateButtonState()" name="descriptorTable:0:j_idt665"></td><td id="descriptorTable:0:j_idt666" class="rf-dt-c" style="text-align: center;">ANEEIGP</td><td id="descriptorTable:0:j_idt668" class="rf-dt-c" style="text-align: center;">2</td><td id="descriptorTable:0:j_idt670" class="rf-dt-c" style="text-align: center;"><td id="descriptorTable:0:j_idt672" class="rf-dt-c" style="text-align: center;"></tr><tr class="rf-dt-r firefinder-match"></tbody><tbody id="descriptorTable:sc"></table>I need to get CheckBox in a row in which in second cell text equal to some text.
My real jQuery wihich work in FireBug is :
$('#descriptorTable tr:contains(\'ANEEIGP\') input');But when i try to convert it to WebAii jQuery it return ObjRefException.
Find.ByExpression<HtmlControl>("id=descriptorTable", "|", "tagindex=tbody:0").Find.jQuery().tag("tr").contains(closedProejct).first<HtmlTableRow>(). Find.ByExpression<HtmlInputCheckBox>("tagname=input").Check(true, true);i can find cell with this text but i cant get checkbox, because of i cant get parent element of cell.
Find.ByExpression<HtmlControl>("id=descriptorTable", "|", "tagindex=tbody:0").Find.jQuery().tag("tr").descendant() .contains(closedProejct).parent().tag("tr").first<HtmlTableRow>(). Find.ByExpression<HtmlInputCheckBox>("tagname=input").Check(true, true);I know i can get it with LINQ and Find Expressionsm but i want to know how i can get it with WebAii jQuery.
Thanks.