View Full Version : selPackName1.0 is null or not an object
08-23-2002, 01:42 PM
I want to check to determine if my select list box is empty and return out the funciton if so. What happens is that when I execute the following code below I get:
document.main_form.selPackName1.0 is null or not an object. Does anyone know of a way round this?
if (document.main_form.selPackName1 == null)
08-23-2002, 01:53 PM
The problem exists because of the decimal point/full stop in the select name. If you change that like this:
then change all the references to it, then your problem should be resolved
hope this helps
08-23-2002, 03:35 PM
08-23-2002, 04:53 PM
I've fixed this now it needed:
if (typeof(document.main_form.selPackName2) == 'undefined')
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.