jquery create a button

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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
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);