Posts by Waldson Patricio • 146 points
2 posts
-
2
votes1
answer27
viewsA: using price to set the input checkbox value to be calculated
You can use a data-attribute: <input id="cmn-toggle-9" type="checkbox" data-price="100,00".... and access it via javascript: var checkbox = document.getElementById('cmn-toggle-9'); var price =…
-
1
votes2
answers94
viewsA: problem with form duplicity
A common way to solve this problem is to redirect the user to their own page to clear the post data: //antes de qualquer saída (echo, caracteres etc) //ao invés do window.location…