$( document ).ready(function() { $('body').on('click', '#export-btn', function(event) { //do stuff }); });