<a class="qq-upload-cancel"></a> <script src="http://code.jquery.com/jquery-latest.min.js"></script> <script> $(document).on('click', 'a.qq-upload-cancel', function() { alert('It works!'); }); $('a.qq-upload-cancel').click(); </script>