Trying to validate if select multiple is populated. I have two select multiples - one populated and the other blank. User has ability to click on item in populated select and copy item to unpopulated select. Problem: When I try to validate the recieving select after initializing myValidation(), my code
var myAccounts = eval('document.' + frmName + '.SelAccounts.value');
does not see the item copied into the rec select. I tried ...'.SelAccounts[0].value');. I get an error msg say it is not an object.
I want the code to validate if unpopulated select has items in it. If not, show msg.
Any help would be greatly appreciated.
var myAccounts = eval('document.' + frmName + '.SelAccounts.value');
does not see the item copied into the rec select. I tried ...'.SelAccounts[0].value');. I get an error msg say it is not an object.
I want the code to validate if unpopulated select has items in it. If not, show msg.
Any help would be greatly appreciated.