开发者

add to cart button not working in mozila firefox

开发者 https://www.devze.com 2022-12-14 02:16 出处:网络
add to cart not working in mozila firefox but it is working in internet exploral,Netscape,crome...how can i solve th开发者_如何学Gois problem.

add to cart not working in mozila firefox but it is working in internet exploral,Netscape,crome...how can i solve th开发者_如何学Gois problem. site url is::

http://www.botguruz.com/buy-a-bot.html?page=shop.browse&category_id=1&vmcchk=1


I answered this question yesterday:

Get rid of the return false; in the <form>'s onsubmit attribute. If you just delete that in Firebug, you'll see the button works.

Your handleAddToCart( this.id ) function should return a boolean - false if you don't want the submit button to work, true otherwise. Hardwiring in a return false to the onsubmit event means that whatever happens in the handleAddToCart() function, the form won't submit.

I don't know why it would work in other browsers.

It's this bit:

<form onsubmit="handleAddToCart( this.id );return false;"
      class="addtocart_form" id="addtocart50_1" name="addtocart"
      method="post" action="http://botguruz.com/index.php">

You need to delete the return false;

0

精彩评论

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