2
Good afternoon to you all. I am trying to validate a form by checking if the value field is filled and is greater than 0.
It worked perfectly in IE, but in Firefox it works for nothing in the world!
Follows the code:
<script language="JavaScript">
function valida(){
f = document.form2;
var valor = f.vlrass.value;
if (valor==""){
alert("Informar valor original da contribuição.")
f.vlrass.focus()
return false;
}
if (valor==0){
alert("Informar valor original da contribuição.")
f.vlrass.focus()
return false;
}
}
</script>
And the form call:
<input type="submit" name="Submit" value="Listar Vencimentos"" onclick="return valida()">
Any idea?
first mistake:
<input type="submit" name="Submit" value="Listar Vencimentos" onclick="return valida()">
for<input type="submit" name="Submit" value="Listar Vencimentos"" onclick="return valida()">
– CesarMiguel