Syntax Error, unrecognized expression: [object Object]
hi there,
i've got the following code:
- $(".serv-wrap").each(function(){
- thisObject = $(this);
- $(thisObject).hoverIntent(function(){
- hElement = $(" h4", thisObject);
- combinedElements = hElement + "," + thisObject;
- $(combinedElements).stop().animate({
- marginTop: "-153"
- },100);
- },function(){
- $(combinedElements).stop().animate({
- marginTop: "0"
- },400);
- });
- });
"hElement" is a child of "thisObject" but due to positioning needs to be targeted specifically for the animation...
i get the error message in the subject of this post...
i've tried all sorts of methods and variations, but the gist of it is that whenever i try to combine both $(this) and "hElement" into one selector statement i get that error message.