开发者

Jquery - google chrome problem, incorrect function call !

I have a code with jquery and it works in All browsers (even ie6 !!!) but it does not work in chrome .. it calls incorrect functions in wrong time so it displys wrong stuff ...

have tryed to fixe开发者_如何学Cd it with 100 different ways, almost rewrote all the code, but the same

Maybe anyone could spot a problem that could fix it ...

Link here !!! Added everything that is useful - http://jsfiddle.net/EQywA/2/ - works in every browser in chrome no !!! I thing is understandable whats wrong now !!

Ideas anyone ???? :)


I am seeing a syntax error in Chrome. I don't know how well you know chrome, but if you just hit Cntrl-Shift-j you will get the javascript console which shows the error.

});
</script>

I deleted: });

and no longer get the error.

EDIT: instead of using nth-child which isn't working, try: var index = $this.parent().prevAll().length

change

if($(this).parent().is('.product form .variant_box_option:nth-child(1)'))

to

if($this.parent().prevAll().length == 0)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜