If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Iterate through input tags and get the ones needed

Hello, I have a problem in Javascript that I really cant figure out, I've tried for days! here it goes:

I need to iterate through a form and get all the elements that has a class like
"required" and then, save this elements id, because I have label elements that has a for="" tag with the same as the id for the input/dropdown in the form. To all these labels I need to apply a "*" in the end of the label. And all this in an onload function.

I have tried everything I can come up with but now I'm close to giving up so now I need help, how can I get these values and do this?