Button test

HTML:

<div id='btn'>
<button onclick="mybtn()">Click me</button>
</div>

JS:

function mybtn() {
 $('#btn').append('<button onclick="mybtn()">Click me</button>')
};


Leave a Reply

Your email address will not be published. Required fields are marked *