Solved

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

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

This article discusses how to create an extensible mechanism for linked drop downs.
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…

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