How to handle events on dynamic carousel


Here on click of “add to cart” i need to call Http Post method by passing some parameters how can i do it by creating functions…