like this object,
var myColumnDefs = [
{key:"label", sortable:true, resizeable:true},
{key:"notes", sortable:true,resizeable:true},......
I can call object as this method, which it works
...
myColumnDefs.key
...
but how to call this object with Stringname like
function myObject (string) {
return myColumnDefs.Stringname
}
alert(myObject('key'));
alert(myObject('sortable'));
thanks for Help