HTML:
<label name="table_id" for="1280461">Rock</label> <label name="table_id" for="1291065">Paper</label>
This doesn't work:
$$('label[name="table_id"]').each(function(s){ console.log(s.for); });
s.readAttribute('for');
See: http://prototypejs.org/api/element/readattribute