Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 903
  • Last Modified:

jquery select all table td's with a colspan == 4

I need to select just the TD that have a colspan = 4 and then set the height of those to 40.  How can I do this?  The following works fine to set the height of all so I just need a if then, but not sure how to target it.



       $("#iconSelectorTable td").css("height", 40);
0
lvmllc
Asked:
lvmllc
1 Solution
 
leakim971PluritechnicianCommented:
Try :
 $("#iconSelectorTable td[colspan='4']").css("height", 40);

Open in new window

0
 
lvmllcAuthor Commented:
works perfect
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now