I have this in my code:
Title
-
I think, you can remove "onclick" from your html
Title
Other title
And then try something like this
$('#22').on('click', function (e) {
your code
});
But if your div id="22" will be added dynamically your should use something like this
$('parent').on('click', '#22', function (e) {
your code
});
where 'parent' - static element already existed in document before click