Thanks for your reply, I have posted this in the wrong forum, I should have used the jQuery forum. I don't know if you are into jQuery but if you are you will be familiar with the addClass and toggleClass functions.
I haven't confirmed it yet but I'm pretty sure that I can't use those functions to change the class of a parent and expect all of the children to change with it. The only element that will change is the element which you select with jQuery as in:
$(".parent").addClass("new_class"); // changes only parent element
I will probably need to add that class to all of the children by first selecting them with jQuery as below:
$(".parent").children().addClass("new_class"); // to select all children
I can see that you are an administrator, maybe you can move this post to the js forum.