0

I have a series of checkboxes to capture input for multi-valued attributes from a the user form. How do I, via the YUI controller, retrieve these attributes especially since the checkboxes don't have an id but a 'name' attribute, so I can't use the Dom.get() method (This would require looping and accumulating the values into an array and would require that I give each checkbox a unique id on the form and some of these have almost 30 checkboxes just for one attribute) so I was wondering if there was a way to retrieve the property using an existing YUI/Alfresco.class.method API method for the job?

Dark Star1
  • 6,986
  • 16
  • 73
  • 121

1 Answers1

2

Did you check the API docs? YAHOO.util.Dom.getElementsBy() should do what you want.

Will Abson
  • 1,562
  • 7
  • 13