38
rated 0 times
[
44]
[
6]
/ answers: 1 / hits: 158837
/ 11 Years ago, tue, april 30, 2013, 12:00:00
I am setting up a button via JavaScript, but the button doesn't show the text.
Any recommendations on how to fix it?
var b = document.createElement('button');
b.setAttribute('content', 'test content');
b.setAttribute('class', 'btn');
b.value = 'test value';
var wrapper = document.getElementById(divWrapper);
wrapper.appendChild(b);
More From » html