3.- I would really appreciate it if someone could tell me how to keep the text input by an user in a textarea after a validation fails so that the user does not have to enter the whole text again (just like it does with <input type="text">).
Thanks for pointing out this solution.
<script>
for (i = 0; i < document.forms[0].especie.options.length; i++)
{
if (document.forms[0].especie.options[i].value == "[+especie+]")
{
document.forms[0].especie.selectedIndex = i;
break;
}
}
</script>
<script type="text/javascript">
for (i=0; i<document.forms[0].service.options.length; i++){
if (document.forms[0].service.options[i].value == "[+service+]"){
document.forms[0].service.selectedIndex = i;
break;
}
}
</script><script>
for (i = 0; i < document.forms[0].especie.options.length; i++)
{
if (document.forms[0].especie.options[i].value == "[+especie+]")
{
document.forms[0].especie.selectedIndex = i;
break;
}
}
</script>This discussion is closed to further replies. Keep calm and carry on.