Hi all,
I'm validating my form, just checking if in the fields where a number should be the user has entered an string.
In the form there is a field where the users can add more fields if needed. Then the form is sent to a js function where I gather the fields added like this:
params ='';
var myAray = [];
$(".myfieldThatNeedNumbers").each(function(){
myAray.push($(this).val());
})
params += '&myfieldThatNeedNumbers='+myAray;
Later params will be sent to my php file thanks to .ajax()
How can I validate that the values in field "myfieldThatNeedNumbers" are numbers?
Thanks a ton!