When I looked at Firebug and logged the value of reqd it was showing up as the last reqd in use.
I tried sp += reqd and obviously this gave me a value of all reqd's together as I did expect.
I am just stumped as to where I am going wrong.
Any pointers would be greatly appreciated.
Thanks.
As an aside, I tried putting the error append in the !valid check
|
|
when I try it this way, I am getting multiple spans in the div as follows: ID, ID + Firstname, ID + First Name + Last Name, ID + First Name + Last Name + Country. It seems to just be iterating through each one and shoving it in there as a span. Not quite sure where i'm going wrong.
The updated fiddle can be found
here
|
||
| |