>
> function selectAllOptions(obj) {
> if (!hasOptions(obj)) { return; }
> for (var i=0; i<obj.options.length; i++) {
> obj.options[i].selected = true;
> }
> }
>
> 'obj' is the reference to the field in question, however you want to get
> it passed in, i.e. 'document.YourFormName.YourFieldName' where... well,
> you know. :P
>
That's from the same package I directed him to, except that you did not
include the hasOptions(obj) function to make this useable.
Rich Kroll
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Enterprise web applications, build robust, secure
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290383
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4