Solved

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

Posted on 2011-02-24
2
876 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Node.js 11 82
AJAx/JQuery/JSON Error 3 39
Jquery Calculation 3 43
Not picking up custom HTML-5 elements on page? 9 23
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This article discusses how to implement server side field validation and display customized error messages to the client.
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…

752 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