开发者

Jquery - google chrome problem, incorrect function call !

开发者 https://www.devze.com 2023-02-28 20:42 出处:网络
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 ...

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

精彩评论

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

关注公众号