dom scripts + regexp
What this script is doing is creating a list of anchors that put the focus back on the input element of the form element that is not valid. What I don't understand is what this  part of the script is referring to:
Thanks in advance for any help on this.
match() returns an array. That's selecting the second element in the array, which is the contents of the parenthesized subexpression.
Thanks Kravvitz. I probably should have worked that one out for myself :). Makes sense now.