In javascript I can invoke methods normally, but when I use jQuery, it does not work.
For example:
<a href="#" onclick="meuMetodo()"> Link </a>
In javascript methods work like this, but not in jQuery.
Explaining better:
In the script part, I declare it as follows:
<script...>
$('doc...ready...
function meuMetodo(){
//corpo do metodo
}
</script>
</head>
<body>
<a href="#" onclick="meuMetodo()"> Link </a>
</body>
In javascript, everything works. But that same syntax in jQuery is not working. Is there a different syntax for invoking methods in jQuery or is it simply not possible to invoke methods through HTML elements?