I have problems calling functions "onclick".
Is it appropriate to use this methodology?
It tells me (function name) that it is not defined. While on other pages it works for me. I am learning.
I have read that it is "bad" to use "onclick" and that it is better to use:
$(document).on('click', '#id', function (){
If I use "$(document).on('click..." never problem. However, it suits me to "call" the function since this way I can pass parameters. Is there a way for "onclick" to work fine? In almost all popular browsers? What does it depend on if it works well? What matters because it fails?