else if ( ( p1 - p2 - p3 < 0 ) || ( p1 - p2 -p3 > 100 ) )
alert("point out of range.");
the above code is part of a javascript and checks if the value is between 0 and 100.
I need to changed to something like
else if ( ( p1 - p2 - p3 < 0 ) || ( p1 - p2 -p3 > value of the edit box with the name MAX ) )
alert("point out of range.");
thats because the value in the edit box with the name MAX can be changed
Can anyone please tell me how can i do it ?
Thanks in advance.
alert("point out of range.");
the above code is part of a javascript and checks if the value is between 0 and 100.
I need to changed to something like
else if ( ( p1 - p2 - p3 < 0 ) || ( p1 - p2 -p3 > value of the edit box with the name MAX ) )
alert("point out of range.");
thats because the value in the edit box with the name MAX can be changed
Can anyone please tell me how can i do it ?
Thanks in advance.