i able call function in code.. want make calling function name variable can call function based on variable value ..
reportpage.accounts()['cattype']()
so here want make cattype variable, can pass value.. how declare/call here..
you replace string literal variable, anywhere else.
var thing = 'cattype'; reportpage.accounts()[thing]()
Comments
Post a Comment