0

My page has an ajax call every 30 seconds using the setInterval function that refreshes the contents of a table.

This table contains a single button on each row (that varies depending on another value) that has a set class and has an id set as a data attribute.

There is then another javascript call that should fire on the button being pressed. This call was working before I added the refresh functionality but now does not even fire.

$(function() {
    $('.workflow-play').on('click', function(e) {
        e.preventDefault();
        dostuff

The button is added using

$('#containerDiv').html('<a href="#" id="' + wfid + '" class="workflow-play"> <i class="glyphicon glyphicon-play"></i></a>');
Malekai
  • 45
  • 10

0 Answers0