Answers for "jquery create a button"

0

jquery create a button

$('#container').append(
    $(document.createElement('button')).prop({
        type: 'button',
        innerHTML: 'Press me',
        class: 'btn-styled',
		click: function () { alert('hi'); }
	})
);
Posted by: Guest on June-10-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language