No you cant do it that way (your trying to pass "someFunction(" + page + ")"
to a parameter on the controller named onclick
). You could subscribe to the click
event of the <a>
tags. For example
$(document).on('click', 'a', function() {
// do something
});
but you should change document
to a selector which is the closest parent of the relevant <a>
tags
solved Calling Javascript On PageListPager MVC