Chad...

Here's what I'd suggest...leave the name value as is, even though that's not 
the best idea. Add an ID attribute to each, with an increasing numeric value:

cb1, cb2, cb3, etc.

Give each combobox the same class, comboBox or something like that.

Then, you could try something like this:

var $boxes = $('.comboBox') // gives you as many comboboxes as exist on the 
page 
$boxes.each(function(){
        $elem = $(this); // the current combo box
        if ($elem.val() == '' || $elem.val() == 0) {
                // do something here
        }
});

> <select name="ID>
> <option value="">Please Select</option>
> <option value="1">1</option>
> </select>
> 
> <select name="ID>
> <option value="">Please Select</option>
> <option value="1">1</option>
> </select> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325124
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to