du kan ju fortsätta bygga på den
if (!(document.form.motiv[0].checked || document.form.motiv[1].checked || document.form.motiv[2].checked || document.form.motiv[3].checked || document.form.motiv[4].checked)) {
alert('Motiv ej valt.');
return false;
}
eller lägga det i en loop
for(var i=0; i<5; i++)
{
if (document.form.motiv[i].checked)
{
return true;
}
}
alert('Motiv ej valt.');
return false;
PS. tänk på att lägga koden inom [ kod] ... [ /kod] taggen eller [ html] ... [ /html] taggen (utan mellanrummet i [ ] )