Recent Posts

Caution: Greetings to all visitors. The site is working in short. Links Please skip the link to view any topic and thank you for visiting
header ads

False value being passed in ajax call

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

Post a Comment

0 Comments