I have a function in html:
<script>
function update_x(obj) { 
 ...
}
</script>
and I call it on click in html with onclick="update_x(this)" (inside of <div class="aaa">).
How can be the same achieved in jquery? I've tried some stuff, like:
$('.aaa').click(update_x);
 }); 
and
$('.aaa').click(function () {
    $(this).update_x(1, false);
 }); 
neither won't work...
 
     
     
    
`
– A. Wolff Sep 27 '13 at 16:34