Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('.target').on('click', function(){});
- $(function(){
- window.setTimeout(function(){
- $('.target').on('click', function(){});
- }, 2000); //Aqui você regula um tempo seguro em que o botão já estará carregado
- });
- $.ajax({
- url: "...",
- success: function(data){
- //...
- //após inserir seu código, você atrela o evento
- $('.target').on('click', function(){});
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement