Hi!
On my page the user chooses some options. I made the alert window so that if the option is not chosen and the user executes the form it pops, saying: “option not chosen.” The options are choosed with the help of radio buttons (<input type=radio>).
The function:
<script language=”JavaScript”>
function zapolnenie_confirmation()
{
if (formaddch.company.value==null)
{
alert(“Choose Company Name”)
return false;
}
}
</script>
However, the script calls up the alert window even when the radio button is checked. What may be the problem?
By default, the value of the $company variable is 0(zero). When I try to write “formaddch.company.value==0” – it doesn’t work at all.