1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
function IsNumeric(sText)
{
alert('debut isnumeric');
phoneRegex=/^-?[0-9]+\.?([0-9]+)?$/;
if(!sText.match(phoneRegex))
{
alert ('numerique');
return false;
}
alert ('non numerique');
return true;
}
function validerModif(i,idAjustContrat) {
alert('valider i='+i+' contrat='+idAjustContrat);
if (!IsNumeric(document.forms[0].elements["ajustContrat[" + i + "].CAjustMntAjust"].value)) {
alert(messageAjustMontant);
}
alert('apres validation');
/* autres trt que j'ai mis en commentaire*/
} |
Partager