What I’m attempting to do is to return a list from a database in the form of an array and compare it against a state array. What I want to do is loop through the Contact Array and if it does not find a match to the Results Set, dead link it. If it does find a result, I want it linked using <a href = “value”></a>
I know how to write the html piece of it in JS, but am stuck with how to do this comparison so that ALL of the states show, but only those which have a value from the database will have a link.
The column alignments aren’t the best below, but you get the idea.
[FONT=”Courier New”]Constant Array Results Set (from database in the form of an array)
————– ———–
AL
AK AK
AZ AZ
AR
CA CA
CO CO
CT CT
DE [/FONT]