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

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -