Solved

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

Posted on 2011-02-24
2
871 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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…

747 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now