Pages (2):    1 2
Member
Member
the_voder   29-11-2013, 11:09
#21

Hi acrylian,

do you mean?
$("td:contains('Custom data')")

Unfortunately, that returns all the elements containing 'Custom data', including the parent elements of the tds I want to get.

a|x

Administrator
Administrator
acrylian   29-11-2013, 12:44
#22

I haven't tried but wouldn't this help?:
http://api.jquery.com/nth-child-selector/
I mean the number of and even is known so it should be possible to get the nth tr with the nth td within to change the value.

Member
Member
the_voder   10-12-2013, 10:59
#23

Hi acrylian,

the problem is the tables containing the items I want to select are also not uniquely identified, so if I use nth:child I may end up selecting items in other backend tabs or panels.

a|x

Member
Member
the_voder   10-12-2013, 16:26
#24

This seems to work:

$("table[id|='image'] tbody tr:nth-child(n)").hide();

where n is the row number. It's complicated by the fact that some of the rows of the containing table for the data for each image contain further tables, but the method above does appear to work.

a|x

Administrator
Administrator
acrylian   10-12-2013, 17:25
#25

Good that you figured something out.

Pages (2):    1 2
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.