Hi i m checking my values from javascript functiions..i m comparing values...
alert is showing that values are not euqal but
but form is still submitting.....when i press submit....
java script code is
<script type="text/javascript">
function validate(value)
{
var minimum = document.getElementById('min').innerText;
var maximum = document.getElementById('max').innerText;
var mini = parseInt(minimum);
var maxi = parseInt(maximum);
if( value < mini )
{
alert('Value is less than minum value');
return false;
}
else if(value > maxi)
{
alert('Value is greater than maximum value');
return false;
}
else
{
return true;
}
}
</script>
my form is
i m calling above function on form submitting
onsubmit="return validate();
what should i do?
Regards..
Farhad