how to search smongst a selectors children for a named element?
i want to access a div nested within another one. the parent is clicked setting off the function but I want to operate on the child, and by its name. I can't figure out the appropriate way to access this specified child.
help?
thanks
- $(".content-item").click(
function(){
- $(this).addClass('div-selected', 500);
- $(this).siblings(".content-item").removeClass('div-selected', 500);
-
- $(this).next('#contentPlaceholder').load("content-template.html");
- $(this).siblings(".content-item").next('#contentPlaceholder').empty();
- });