Question
Validations with javaScript
Hi
Since they are?
Good
I am doing a System of Savings bank of lendings and retirement for a web page, then as the base of information I have the available balance of the savings bank, an example is 199998.88, later I verify that the requested amount is minor to the available balance
I have JavaScript's function:
if (document.frm.optTyperequest[1].checked) { //Lendings
if (document.frm.txtAmount.value > 199998.88 * 0.7) {
alert('Requested amount is bigger than the Available Balance. Check his your Field');
document.frm.txtAmount.focus();
return false;
} else { //Retirement
document.frm.txtAmount.value > 199998.88;
alert('Requested amount is bigger than the Available Balance. Check his your Field');
return false;
}
}
Html or Form:
<form action="continue.asp" method="post" name="frm" target="_parent" onSubmit="return ValidateForm()">
<input type="hidden" name="txtidEmployee" value="121">
<input type="hidden" name="txtBalance" value="199998.88">
<table align="center" style="WIDTH: 410px">
<td align="left" colSpan="3" bgcolor="#ffffff">
<input type="radio" name="optTyperequest" value="S" checked> Lendings
<input type="radio" name="optTyperequest" value="E"> Retirement
</td>
</table>
Since they are two (2) requests lendings and retirement the first one is Lending and the second one is a retirement, then ME NONE WORKS OF THE TWO, none of the two (2) Validations me works, depending on the functions has to say to me a message that this described previously, and it she follows(continues) to another page and does not serve me, to see that you say to me which is the fault, Been grateful
Thank you
very much
Attentivly Text
Since they are?
Good
I am doing a System of Savings bank of lendings and retirement for a web page, then as the base of information I have the available balance of the savings bank, an example is 199998.88, later I verify that the requested amount is minor to the available balance
I have JavaScript's function:
if (document.frm.optTyperequest[1].checked) { //Lendings
if (document.frm.txtAmount.value > 199998.88 * 0.7) {
alert('Requested amount is bigger than the Available Balance. Check his your Field');
document.frm.txtAmount.focus();
return false;
} else { //Retirement
document.frm.txtAmount.value > 199998.88;
alert('Requested amount is bigger than the Available Balance. Check his your Field');
return false;
}
}
Html or Form:
<form action="continue.asp" method="post" name="frm" target="_parent" onSubmit="return ValidateForm()">
<input type="hidden" name="txtidEmployee" value="121">
<input type="hidden" name="txtBalance" value="199998.88">
<table align="center" style="WIDTH: 410px">
<td align="left" colSpan="3" bgcolor="#ffffff">
<input type="radio" name="optTyperequest" value="S" checked> Lendings
<input type="radio" name="optTyperequest" value="E"> Retirement
</td>
</table>
Since they are two (2) requests lendings and retirement the first one is Lending and the second one is a retirement, then ME NONE WORKS OF THE TWO, none of the two (2) Validations me works, depending on the functions has to say to me a message that this described previously, and it she follows(continues) to another page and does not serve me, to see that you say to me which is the fault, Been grateful
Thank you
very much
Attentivly Text
