jquery - how to set the child number in a table -


I can call children manually like this

  $ (" Tr & gt; td: nth-child (1) tr: nth-child (n + 3) "). AddClass ("ClassName");   

How to pass this value, I

  var index = 5 in JavaScript; $ ("Tr> td: nth-child (1) tr: nth-child (" + + "" "). AddClass (" ClassName ");   

It does not work as it is. My scenario is that we have to find the indicator of a specific column and cross that index value. $ ("tr & gt; td: nth-child (1)) Tr For the sake of completeness, I also like the @Windered method:

There is no string formatting bug like this: pre> $ ("tr & gt; td: nth-child (1) tr"). Eq (zero badge index) )

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -