Already there, in your var disp, you will at most result of the function. setTextValue () (just what framework elsewhere? .. Because I was not a standard JS!)
A simple Code:
Code:
var disp = $tab [ name_action ] ;
would be sufficient ...
Secondly, I think that even if you ASSIGNED your variable in this way, its visibility will be limited to the management of the event ... In fact, "var" locates the variable block of code in which it is declared. To make global and thus usable simply turn the "var"
Bookmarks