I have an Ajax call that loops through a json file with the following code:
<input class='num' type='text' name='quantity_" + element.id + "' id='numb' value='0'>
It calls a function in the form tag as follows:
<form method='POST' action='cart.php' id='cartForm' onsubmit='return myFunction();'>
When I try to validate the quantity to make sure that it's a positive number less than ten, I use the following javascript:
function myFunction() {
var x;
x =...
False value being passed in ajax call
from JavaScript https://ift.tt/33M2EyF
via IFTTT
0 Comments