I echo a button from a php script as following: `print'<button id="testingbtn">TEsting</button>';` 

I use the id listen to the button and alert a notification message as following: 

```
            $('#testingbtn').click(function(){
                alert('working');
            });

```

The thing is that i used the same method before and it worked for me on all browsers but not anymore. can someone try to help me out the problem.
thanks guys..