Menu
Hi there,
I’m new to JS – but feel free to mock me 🙂
My validation works fine on a form – but when validation fails on a drop down – I need more than just focus – I need the Drop Down menu to appear –
[code]
function validateNewMed()
{
// check for an Title in the drop down
if (document.forms[1].elements[1].value == “”)
{
document.forms[1].elements[1].style.background = ‘#AFEEEE’;
document.forms[1].elements[1].focus();
return false;
}
}
Any help would be very much appreciated
Kindest
Glorifindal