Using "NOT" in a jquery nth-child formula -
i'd remove 3rd, 4th, 6th, 7th, 9th, etc th. thought like:
summaryhead.find('tr:first th:nth-child(!3n+2)').remove;
however doesn't work. tried
summaryhead.find('tr:first th:nth-child(3n+3)').remove(); summaryhead.find('tr:first th:nth-child(3n+4)').remove();
this behaves rather weirdly. there way combine 2 finds?
for clarity want remove of green , red fields in image, there might more or less rooms, each room have 3 fields, , want give first room's field colspan 3
, hide 2 fields (colored red & green here):
i'm not sure if there nicer way can this
summaryhead.find('tr:first th').filter(':nth-child(3n+3), :nth-child(3n+4)').remove();
Comments
Post a Comment