Hi wilg32,
Thanks for pointing me in the right direction.
The final solution I came up with was;
jQuery(document).ready( function(){
jQuery('.catalogueTable .catalogueItemNotFound').c
});
Thanks.
Main Topics
Browse All TopicsHi all,
I have a website on a CMS that produces the following code:
<table class="catalogueTable">
<tr>
<td class="catalogueItemNotFou
</tr>
</table>
How can I write a piece on jQuery that upon the page loading it'll look for this table with this particular cell, and if the cell is found within the table it will add the class "style-table" to the table??
The issue is the CMS creates this table across a number of pages on which the jQuery would be placed, but I only want the class applied if the cell with the class name "catalogueItemNotFound" is present within the table.
Thanks for your help in advance.
GW.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Well basically I though that you can get into a solution from what I told you:) You could simply ask that you were almost there but you don't know how to select table or add a class. I would advice you in future to make more contact with experts here, because we resolves alot of question for different peoples. Sometimes its enough to point something important for them, sometimes we need to go trough whole process of explanation. I hope that you understand that :)
Hi wilg32,
I can see your point about communicating better with the experts.
However, from my point of view I look at it like this. I assigned 500 points to the question because for me it was hard.
I would've thought by having such a high point value that I was communicating that I wanted a detailed response.
I will be sure to communicate my skill level better in future questions and provide an idea of how much detail I will need in the answer.
Thank you for your help on this question.
GW.
Yes you think that 500 is much, but If you would go trough javascript unanswered question right now - most of them are for 500 points, so its really hard to prioritise them correctly. 500 points means a little more attention to experts, not a superdetailed response at once. At the end - remember that experts does not receive anything (except shirts hahaha) for solving many difficult problems, so in fact they spend their own free time to help peoples like you. So dont be surprised when they point you sometimes in good direction. They really have own life and jobs to do, and sometimes they have only a few minutes to spend to answer your question or point in direction :)
Hopefully this detailed info will help you judge Experts in future from point of a volunteers, not a people that gets pays for doing their job correct.
>> jQuery('.catalogueTable .catalogueItemNotFound').c
Where did closest() come from???
Refer to attached example and comments.
On another note, the point system is more useful to attrack attention to your question. The quality/detail of the response is always up to the discretion of the expert. If you feel you have not received adequate help, you can always wait to hear what others have to say. If nothing else, when you offer 500pts and end up NOT awarding the 500pts, you are basically encouraging that expert to NOT help you in the future. It is to your benefit that you fully reward what you promise. Just a thought :)
Business Accounts
Answer for Membership
by: wilq32Posted on 2009-06-11 at 02:59:06ID: 24600328
have you tried:
$(".catalogueTable .catalogueItemNotFound")
???