I am wondering, i have this array that has all the data I need. What I want to be able to do, is select StateCode 5 and it shows the name value Awaiting Banking Details
Here is the array layout.
var status = [
{StateCode:1, Name:"1st Email"},
{StateCode:2, Name:"1st Contact"},
{StateCode:4, Name:"2nd Email"},
{StateCode:3, Name:"Call Back"},
{StateCode:5, Name:"Awaiting Banking Details"},
{StateCode:6, Name:"Detail Form Emailed"},
{StateCode:7, Name:"Refused Banking Details"},
{StateCode:8, Name:"Signed Up Silver"},
{StateCode:9, Name:"Welcome Letter Emailed"},
{StateCode:10, Name:"Optimised on Web"},
{StateCode:11, Name:"Upgraded To Gold"},
{StateCode:12, Name:"Sent Upgrade Email"},
{StateCode:13, Name:"Upgraded to Platinum"},
{StateCode:14, Name:"Not Interested"}
];