css - Access through multiple and mixed selectors in jQuery -
<table id="financial101_tab2" class="dxrpcontrol_moderno dxrpwithoutheader_moderno" style="border-collapse: separate; opacity: 1; margin-left: 0px;"> <tbody> <tr> <td id="financial101_tab2_rpc" class="dxrp dxrpcontent" style="padding: 6px 10px 10px; border-width: medium; border-style: …r-color: -moz-use-text-color; background-color: transparent;"> <input id="blockcontrolfinancial101_tab2ati" type="hidden" value="0" name="blockcontrolfinancial101_tab2ati"></input> <div id="blockcontrolfinancial101_tab2" class="dxtclite_moderno dxtc-top" style=""> <ul id="blockcontrolfinancial101_tab2_tc" class="dxtc-strip dxtc-stripcontainer" style="padding: 3px 0px 0px; width: 624px;"> <li class="dxtc-leftindent" style="height: 23px;"> </li> <li id="blockcontrolfinancial101_tab2_t0" class="dxtc-tab pctemplates dxtc-lead" style="display: none; cursor: pointer; height: 32px;" onclick="return aspxtctclick(event, 'blockcontrolfinancial101_tab2', 0)"> <a class="dxtc-link"> <img id="blockcontrolfinancial101_tab2_t0img" class="d:\projects\sitcenter\xcms.domain\xcmsview\customstylesource\tabstyle.css dxtc-img dx-vam" style="margin-right:;" alt="" src="/dxr.axd?r=1_11-suxk8"></img> <b class="dxtc-text dx-vam"> Гистограмма </b> </a> </li> <li id="blockcontrolfinancial101_tab2_at0" class="dxtc-activetab pctemplates dxtc-lead" style="cursor: default; height: 32px;"> <a class="dxtc-link"> <img id="blockcontrolfinancial101_tab2_at0img" class="d:\projects\sitcenter\xcms.domain\xcmsview\customstylesource\tabstyle.css dxtc-img dx-vam" style="margin-right:;" alt="" src="/dxr.axd?r=1_11-suxk8"></img> <b class="dxtc-text dx-vam"> Гистограмма </b> </a> </li> <li id="blockcontrolfinancial101_tab2_t0s" class="dxtc-spacer" style="width: 3px; height: 23px;"></li> <li id="blockcontrolfinancial101_tab2_t1" class="dxtc-tab pctemplates" style="cursor: pointer; height: 32px;" onclick="return aspxtctclick(event, 'blockcontrolfinancial101_tab2', 1)"></li> <li id="blockcontrolfinancial101_tab2_at1" class="dxtc-activetab pctemplates" style="display: none; cursor: default; height: 32px;"></li> <li class="dxtc-rightindent" style="width: 329px; height: 23px;"></li> </ul> <div id="blockcontrolfinancial101_tab2_cc" class="dxtc-content" style="width: 600px;"></div> </div> <b class="dx-clear"></b> <script id="dxss_1435400798" type="text/javascript"></script> </td> </tr> </tbody>
i'm trying access <b class="dxtc-text dx-vam"></b>
nothing, or ГистограммаГистограммаГистограммаГистограмма multiple times, need 1 text, iterates on tables, have them 5 or 6, need text of table, used script
alert($('#blockcontrolfinancial101_tab2#blockcontrolfinancial101_tab2_tc#blockcontrolfinancial101_tab2_at0, a.dxtc-link, b.dxtc-text').text());
but doesn't correctly give result, need text 'Гистограмма' once, , in table, ideas?
the suggestion tomer didn't work me. think looking this:
alert($("#blockcontrolfinancial101_tab2_at0").find(".dxtc-text.dx-vam").text());
you can simplify selector use closest id (which should unique on page) , select element classes .dxtc-text
, .dx-vam
using find()
this:
.find(".dxtc-text.dx-vam")
Comments
Post a Comment