javascript - How to call a function on Twitter Bootstrap in a modal itself? -


i'm using extention twitter bootstrap modals: https://github.com/jschr/bootstrap-modal

i want call defined method call class "event_join". function event_join works if don't have opened modal.

now i've tryed following:

$modal.on('click', '.event_join', function(){    $modal.event_join(); });      $(".event_join").click(function() {   //my working code   } 

but can't work on opened modal itself. want use same function i've defined.


Comments