I may be doing this very badly but I'm new to this! if I have an array that contains objects like this
var company = [H7 = {companyName:"company1"},F4 = {companyName:"company2"}]
If I get a reference as a string say "F4" is there any way I can go
myCompName = company "F4" companyName and get the result "company2"
I was trying to use inArray like this
myStand = $.inArray("F4", companyObjects)
myCompName = companyObjects[myStand].companyName
but this doesn't work and yet
myStand = $.inArray(F4, companyObjects)
myCompName = companyObjects[myStand].companyName
does work. Do I have my array set up wrong or is there a way to do this? Thank you Alex