'cliick event not happening [duplicate]

this is my function:

function bind_click_user_pages()
{
     $(".card-pages-own").click(function () {
       debugger;
     })
}

the site isnt entering break mode, thing that it should be doing
and this is my function call

 api.post(`/api/blog/get_user_pages`).then(response => {
    response.response.forEach(response => {
        $(".card").append(`  
           <div class="card" id="page_card_${response.id}" datacol1="${response.id}">
           </div> 
        `);        
      });
  });
bind_click_user_pages();

and i dont know whats wrong



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source