jquery create a button

Solutions on MaxInterview for jquery create a button by the best coders in the world

showing results for - "jquery create a button"
Enora
09 Sep 2017
1$('#container').append(
2    $(document.createElement('button')).prop({
3        type: 'button',
4        innerHTML: 'Press me',
5        class: 'btn-styled',
6		click: function () { alert('hi'); }
7	})
8);