Solved

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

Posted on 2011-02-24
2
875 Views
Last Modified: 2012-05-11
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
Comment
Question by:lvmllc
2 Comments
 
LVL 82

Accepted Solution

by:
leakim971 earned 250 total points
ID: 34975577
Try :
 $("#iconSelectorTable td[colspan='4']").css("height", 40);

Open in new window

0
 

Author Closing Comment

by:lvmllc
ID: 34979396
works perfect
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question