Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function() {
- $('#create').click(function(){
- document.getElementById('select').innerHTML = '<button id="choice"></button>'
- });
- });
- $(function() {
- $('#choice').click(function() {
- ...
- });
- });
- $(function(){
- $('#create').click(function(){
- document.getElementById('select').innerHTML = '<button id="choice"></button>'
- });
- });
- $(function(){
- $('body').on('click','#choice',function(){
- ....
- });
Add Comment
Please, Sign In to add comment