title: How to call .on('click') function from another function in JavaScript
body: <p>I have two functions, first <code>$('#tabela').on('click', '.buyButton', function()</code> and second function <code>submitAll()</code> How can I call first function from the second?</p>