I Found the answer for my question , And I’m sharing it here in case anyone interested.
the problem was that click event won’t work on dynamically generated html elements
and the alternative that worked is using on
$('body').on('click','#elementID',Callback)