I have a list of id's in buttons:
<button id="grafico01">Pontuação por MARCAS</button>
<button id="grafico02">Pontuação por EQUIPAMENTOS</button>
<button id="grafico03">RAZÃO da Pontuação</button>
... that become functions:
function grafico01(){...
function grafico02(){...
function grafico03(){...
I deal with a function that receives the ID's of the buttons:
$("button[id^=grafico]").click(function() {...
Depending on the ID's, call the corresponding function, but I have not been successful with typeof and instanceof .
Is there any way I can call these functions through a received name, like the callable operation of PHP?