jQuery(document).ready(function() {

    $('.banner').children().each(
        function(){
            //access to form element via $(this)
            $(this).click(function() {
                $.ajax({
                    type: "POST",
                    url: 'banner/increment',
                    data: "id=" + this.id

                });
            });
        }
        );

    $('.banner').click(function() {
        $.ajax({
            type: "POST",
            url: 'banner/increment',
            data: "id=" + this.id

        });
    });
});