arsium Posted May 29, 2012 Report Share Posted May 29, 2012 Уважаемые Simpla'чане! Буду очень признателен Вам, если поможете устранить ошибку в браузере Chrome - в product.tpl стоит счетчик количества товаров, т.е. покупатель жмет на "+/-", тем самым выставляя нужное ему количество. Во всех браузерах всё отлично работает, кроме Chrome. Нажимаю на "+", получаем:[object HTMLInputElement]1затем нажимаю на "-", в счетчике выставляется "1". В чем может быть проблема?Код: < a href=\ " javascript:void(0);\ " title=\ " Уменьшить\ " onclick=\ " amount=parseInt($( ' #amount ' ).val()); $( ' #amount ' ).val(amount>1 ? amount-1 : 1);\ " class= \ "minus \ ">-< / a > < input type= \ "text \ " name=\ "amount\ " id=\ " amount\ " readonly=\ " readonly\ " value=\ " 1\ " /> < a href=\ " javascript:void(0);\ " title=\ " Увеличить\ " onclick=\ " amount=parseInt($( ' #amount ' ).val()); $( ' #amount ' ).val(amount+1);\ " class= \ " plus\ " >+< /a > Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.