I guess that you have to count down in your for-loop. You modify the
  DOM while iterating over the nodes, so the model changes while you
  are working at it. If you start with the last element, you don't
  mess up the references.

  for(var j=inputs.length-1; j>=0; j--) { ... }

------------------

Thanks so much Martin, that works perfectly (and makes sense)

James





*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to