I have a script that uses mootools 1.1 to manage an Ajax "form" and checks how many rows are in the dynamically created form before processing them:
form_rows = $$('#form_row'); // The number of rows can vary from 4 to 20
console.log(form_rows.length); // In MooTools 1.1 this returns X, but in MooTools 1.2 it returns 1
After reading the MooTools 1.2 documentation, I expected the code to work the same in both versions. However, in MooTools 1.2, only the first "form_rows" element is returned instead of all of them.
Can someone explain this behavior?
Thank you for any assistance.