Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery create a button

$('#container').append(
    $(document.createElement('button')).prop({
        type: 'button',
        innerHTML: 'Press me',
        class: 'btn-styled',
		click: function () { alert('hi'); }
	})
);
Source by www.techiedelight.com #
 
PREVIOUS NEXT
Tagged: #jquery #create #button
ADD COMMENT
Topic
Name
6+7 =