$(document).ready(function(){
var f_id=1;
$("#click1").click(function(){
f_id++;
$('div').append('<button id="click2">Click</button>');
});
$("#click2").click(function(){
console.log(f_id);
});
});
What will be printed to the console after clicking on button with id #click2 ?
Login in to like
Login in to comment