I'm trying to use a bcash cart code on my site, however from what I realized, it does not work when the site uses jquery. I tried on a site with pure html and the link opened normal, but with jquery nothing happens. Does anyone know what it can be?
<!-- INÍCIO DO CÓDIGO BCASH cod. produto bkp1 -->
<form action='https://www.bcash.com.br/checkout/car/' id="form_id" method='post' target='carrinho'>
<input type='hidden' value='add' name='acao'>
<input type='hidden' value='[email protected]' name='email_loja'>
<input type='hidden' value='123' name='cod_prod'>
<input type='hidden' value='nome_teste' name='nome_prod'>
<input type='hidden' value='67.90' name='valor_prod'>
<input type='hidden' value='0' name='peso_prod'>
<table border='0'><tr><td valign='middle'>
Quant.: <br /> <input type='text' maxLength='3' size='2' value='1' name='quant_prod' style='text-align:center'></td>
<td> </td><td><font size='1' color='#FF0000'>Frete Grátis</font><br />
<input type='image' src='https://www.bcash.com.br/webroot/img/banking/bt_adicionar_ao_carrinho.gif' id="enviadadoscliente" value='Adicionar ao Carrinho' alt='Adicionar ao Carrinho' border='0' align='absbottom' /></td></tr></table></form>
<!-- FIM DO CÓDIGO BCASH cod. produto bkp1 -->
I tried to use the following code in javascript to try to force the opening, but also nothing:
$(function(){
$("#enviadadoscliente").on("click", function(e) {
e.preventDefault();
$("#form_id").submit();
});
});
Thank you in advance for the help.