I think it is just a matter of what your selector selects a container.
If you can, make sure that the first selector selects the child - the child that you want to manipulate ...
something like that:
$(".childSpanClass").hover( function () { $(this).css("border", "1px solid "+options.color); }, function () { $(this).css("border", originalBorder); } );
If you cannot select a child there, you can select a child element within functions, for example:
$(".container").hover( function () { $(this).children(".childClass").css("border", "1px solid "+options.color); }, function () { $(this).children(".childClass").css("border", originalBorder); } );
Update: Given your update, you can try to switch to it from the point of view of a child liberating the boundaries of parents:
$(".container").hover( function () { $(this).parents().css("border", ""); $(this).css("border", "1px solid blue"); }, function () { $(this).css("border", ""); } );
Bobby source share