javascript - Selecting Parent of Element Using JQuery selectors -
Let me count TD inside my TR One of the TD matches my criteria. Here is the skeleton of my html structure,
& Lt; TD & gt; & Lt; / TD & gt; ................... & lt; / Table & gt; & Lt; / Div & gt; And my JQuery selector code is:
$ ('div.pager'; table.pager-table td [id $ = "pager_left" ]
< P> Trying to use : has () selector,
$ ('div.pager & gt; Table.pager-table tr: has (td [ Id $ = "pager_left"]) gt; td '. Length
Comments
Post a Comment